diff --git a/misc/010-configurateur.conf b/misc/010-configurateur.conf index 3043e58..6b1d0bb 100644 --- a/misc/010-configurateur.conf +++ b/misc/010-configurateur.conf @@ -1,15 +1,4 @@ -Listen 80 - - # The ServerName directive sets the request scheme, hostname and port that - # the server uses to identify itself. This is used when creating - # redirection URLs. In the context of virtual hosts, the ServerName - # specifies what hostname must appear in the request's Host: header to - # match this virtual host. For the default virtual host (this file) this - # value is not decisive as it is used as a last resort host regardless. - # However, you must set it for any further virtual host explicitly. - #ServerName www.example.com - ServerAdmin vincent.benoit@benserv.fr DocumentRoot /var/www/app-configurateur diff --git a/misc/template/configurateurfront.postinst b/misc/template/configurateurfront.postinst index 169fcf6..8b8bbb1 100644 --- a/misc/template/configurateurfront.postinst +++ b/misc/template/configurateurfront.postinst @@ -15,7 +15,11 @@ user="root" /usr/sbin/a2enmod proxy > /dev/null 2>&1 /usr/sbin/a2enmod proxy_http > /dev/null 2>&1 /usr/sbin/a2enmod rewrite > /dev/null 2>&1 -/usr/sbin/a2enmod ssl > /dev/null 2>&1 +#/usr/sbin/a2enmod ssl > /dev/null 2>&1 /usr/sbin/a2ensite 010-configurateur.conf > /dev/null 2>&1 +# Test if symlink exist +if [ -h /etc/apache2/sites-enabled/000-default.conf ]; then + /usr/sbin/a2dissite 000-default +fi /usr/bin/systemctl restart apache2 > /dev/null 2>&1