24 lines
765 B
Plaintext
24 lines
765 B
Plaintext
# Redirect to SSL
|
|
<VirtualHost *:80>
|
|
ServerName www.test.com
|
|
Redirect permanent / https://www.test.com
|
|
</VirtualHost>
|
|
<VirtualHost *:443>
|
|
ServerAdmin webmaster@test.com
|
|
ServerName www.test.com
|
|
DocumentRoot /var/www/html/www.test.com
|
|
ErrorLog ${APACHE_LOG_DIR}/www.test.com-error.log
|
|
CustomLog ${APACHE_LOG_DIR}/www.test.com-access.log combined
|
|
SSLEngine on
|
|
SSLCertificateFile /etc/ssl/custom/www.test.com/www.test.com.cer
|
|
SSLCertificateKeyFile /etc/ssl/custom/www.test.com/www.test.com.key
|
|
<FilesMatch "\.(cgi|shtml|phtml|php)$">
|
|
SSLOptions +StdEnvVars
|
|
</FilesMatch>
|
|
<Directory /var/www/test.com.com>
|
|
SSLOptions +StdEnvVars
|
|
Options FollowSymLinks
|
|
AllowOverride All
|
|
Require all granted
|
|
</Directory>
|
|
</VirtualHost> |