configure SSL on apache2

This commit is contained in:
Antoine Beaupré 2008-10-07 18:00:06 +00:00
parent 3e0c650da0
commit 72328a9f4b
1 changed files with 12 additions and 0 deletions

View File

@ -210,6 +210,18 @@ if [ -x /usr/sbin/apache2 ]; then
a2enmod $php a2enmod $php
s="apache2" s="apache2"
fi fi
if ! grep '^Listen.*443$' /etc/apache2/ports.conf; then
echo "Listen 443" >> /etc/apache2/ports.conf
s="apache2"
fi
if [ ! -h /etc/apache2/mods-enabled/ssl.load ] ; then
a2enmod ssl
s="apache2"
fi
if [ ! -h /etc/apache2/conf.d/alternc-ssl.conf ] && [ -e /etc/apache2/conf.d/ ]; then
ln -sf /etc/alternc/apache-ssl.conf /etc/apache2/conf.d/alternc-ssl.conf
s="apache2"
fi
if [ ! -h /etc/apache2/conf.d/alternc.conf ] && [ -e /etc/apache2/conf.d/ ]; then if [ ! -h /etc/apache2/conf.d/alternc.conf ] && [ -e /etc/apache2/conf.d/ ]; then
ln -sf /etc/alternc/apache2.conf /etc/apache2/conf.d/alternc.conf ln -sf /etc/alternc/apache2.conf /etc/apache2/conf.d/alternc.conf
s="apache2" s="apache2"