diff --git a/apache.sh b/apache.sh index a744ded..ac9bc5f 100755 --- a/apache.sh +++ b/apache.sh @@ -44,8 +44,8 @@ echo "$start_tag AllowOverride All DocumentRoot /var/www/vhosts/$mydomain/httpdocs - ServerName $mydomain - Redirect permanent /mail https://$mydomain/mail + ServerName webmail.$mydomain + Redirect permanent / https://webmail.$mydomain NameVirtualHost *:443 @@ -58,9 +58,8 @@ NameVirtualHost *:443 AllowOverride All - DocumentRoot /var/www/vhosts/$mydomain/httpsdocs - ServerName $mydomain - Alias /mail /usr/local/squirrelmail/www + ServerName webmail.$mydomain + DocumentRoot /usr/local/squirrelmail/www Options None