mise au point support multi distribution
This commit is contained in:
@@ -1,24 +1,23 @@
|
||||
<VirtualHost *:80>
|
||||
ServerName {{ apache_server_name }}
|
||||
ServerAlias www.{{ apache_server_name }}
|
||||
ServerAlias {{ inventory_hostname }}
|
||||
DocumentRoot {{ apache_documentroot }}
|
||||
CustomLog /var/log/httpd/{{ apache_server_name }}_access.log combined
|
||||
ErrorLog /var/log/httpd/{{ apache_server_name }}_error.log
|
||||
ServerName {{ apache_server_name }}"
|
||||
ServerAlias www.{{ apache_server_name }}"
|
||||
DocumentRoot /var/www/{{ apache_server_name }}"
|
||||
CustomLog /var/log/{{ apache_service_name }}/{{ apache_server_name }}"_access.log combined
|
||||
ErrorLog /var/log/{{ apache_service_name }}/{{ apache_server_name }}"_error.log
|
||||
<Directory />
|
||||
Options none
|
||||
Allowoverride none
|
||||
Require all denied
|
||||
</Directory>
|
||||
|
||||
<Directory {{ apache_documentroot }}>
|
||||
<Directory /var/www/{{ apache_server_name }}">
|
||||
Require all granted
|
||||
</Directory>
|
||||
<Directory {{ apache_documentroot }}/Private>
|
||||
<Directory /var/www/{{ apache_server_name }}"/Private>
|
||||
Options indexes
|
||||
AuthName "stop"
|
||||
AuthType Basic
|
||||
AuthUserFile /etc/httpd/passwd
|
||||
AuthUserFile {{ apache_config_dir }}/passwd
|
||||
require valid-user
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
Reference in New Issue
Block a user