Changeset 2339

Show
Ignore:
Timestamp:
10/07/08 20:00:06 (1 month ago)
Author:
anarcat
Message:

configure SSL on apache2

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • alternc/trunk/install/alternc.install

    r2337 r2339  
    211211        s="apache2" 
    212212    fi  
     213    if ! grep '^Listen.*443$' /etc/apache2/ports.conf; then 
     214        echo "Listen 443" >> /etc/apache2/ports.conf 
     215        s="apache2" 
     216    fi 
     217    if [ ! -h /etc/apache2/mods-enabled/ssl.load ] ; then 
     218        a2enmod ssl 
     219        s="apache2" 
     220    fi 
     221    if [ ! -h /etc/apache2/conf.d/alternc-ssl.conf ] && [ -e /etc/apache2/conf.d/ ]; then 
     222        ln -sf /etc/alternc/apache-ssl.conf /etc/apache2/conf.d/alternc-ssl.conf 
     223        s="apache2" 
     224    fi 
    213225    if [ ! -h /etc/apache2/conf.d/alternc.conf ] && [ -e /etc/apache2/conf.d/ ]; then 
    214226        ln -sf /etc/alternc/apache2.conf /etc/apache2/conf.d/alternc.conf