1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
| <VirtualHost *:443>
ServerName mail.XXX.org
DocumentRoot /usr/share/squirrelmail
<Directory /usr/share/squirrelmail>
# php_value register_globals On # refer to Debian bug #128226
php_flag register_globals on
php_value open_basedir /usr/share/squirrelmail:/etc/squirrelmail/:/var/lib/squirrelmail/data/
php_admin_flag safe_mode off
Options Indexes FollowSymLinks
</Directory>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %T %{Host}i" alternc
CustomLog /var/log/apache2/access.log alternc
SSLEngine on
SSLCertificateFile /etc/ssl/server.crt
SSLCertificateKeyFile /etc/ssl/server.key
</VirtualHost>
<VirtualHost *:443>
ServerName www.XXX.org
DocumentRoot /var/alternc/html/a/admin//XXXorg
<Directory "/var/alternc/html/a/admin//XXXorg">
php_admin_value open_basedir "/var/alternc/html/a/admin//XXXforg:/usr/share/php/:/var/alternc/tmp:/tmp"
Options +MultiViews -FollowSymLinks +SymLinksIfOwnerMatch
AllowOverride AuthConfig FileInfo Limit Options Indexes
</Directory>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %T %{Host}i" alternc
CustomLog /var/log/apache2/access.log alternc
SSLEngine on
SSLCertificateFile /root/CERT_MANAGER/server.org.crt
SSLCertificateKeyFile /root/CERT_MANAGER/server.org.key
SSLCACertificateFile /root/CERT_MANAGER/CERTIFICATE_AUTHORITY/ca-cert.pem
</VirtualHost>
<Virtualhost *:443>
ServerName XXX.org
KeepAlive Off
RewriteEngine On
RewriteRule ^/(.*)$ http://www.XXX.org/$1 [R=301,L]
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %T %{Host}i" alternc
CustomLog /var/log/apache2/access.log alternc
SSLEngine on
SSLCertificateFile /root/CERT_MANAGER/server.org.crt
SSLCertificateKeyFile /root/CERT_MANAGER/server.org.key
SSLCACertificateFile /root/CERT_MANAGER/CERTIFICATE_AUTHORITY/ca-cert.pem
</Virtualhost> |