Initial release
This commit is contained in:
24
config/apache/vhosts/www.test.com.conf
Normal file
24
config/apache/vhosts/www.test.com.conf
Normal file
@@ -0,0 +1,24 @@
|
||||
# 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>
|
||||
Reference in New Issue
Block a user