Per VHost access rules

This commit is contained in:
Sven Velt 2016-10-25 22:54:28 +02:00
parent 6a6f8dc853
commit 8ad64c7f2c
2 changed files with 16 additions and 2 deletions

View file

@ -1,9 +1,16 @@
<VirtualHost _default_:443> <VirtualHost _default_:443>
# General setup for the virtual host # General setup for the virtual host
DocumentRoot "/srv/www/apache"
#ServerName www.example.com:443 #ServerName www.example.com:443
ServerAdmin webmaster@localhost ServerAdmin webmaster@localhost
DocumentRoot "/srv/www/apache"
<Directory "/srv/www/apache">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/001-default-ssl.error.log ErrorLog ${APACHE_LOG_DIR}/001-default-ssl.error.log
CustomLog ${APACHE_LOG_DIR}/001-default-ssl.access.log combined CustomLog ${APACHE_LOG_DIR}/001-default-ssl.access.log combined

View file

@ -1,8 +1,15 @@
<VirtualHost _default_:443> <VirtualHost _default_:443>
DocumentRoot "/srv/www/apache"
#ServerName www.example.com:443 #ServerName www.example.com:443
ServerAdmin webmaster@localhost ServerAdmin webmaster@localhost
DocumentRoot "/srv/www/apache"
<Directory "/srv/www/apache">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/002-default-ssl.error.log ErrorLog ${APACHE_LOG_DIR}/002-default-ssl.error.log
CustomLog ${APACHE_LOG_DIR}/002-default-ssl.access.log combined CustomLog ${APACHE_LOG_DIR}/002-default-ssl.access.log combined