Files
sib_25_vaults/ansible_apache_formation/templates/vhost.conf
2021-03-17 23:05:57 +01:00

24 lines
729 B
Plaintext

<VirtualHost *:80>
ServerName {{ apache_server_name }}
ServerAlias www.{{ apache_server_name }}
ServerAlias {{ inventory_hostname }}
DocumentRoot /var/www/html/{{ apache_server_name }}
CustomLog /var/log/httpd/{{ apache_server_name }}_access.log combined
ErrorLog /var/log/httpd/{{ apache_server_name }}_error.log
<Directory />
Options none
Allowoverride none
Require all denied
</Directory>
<Directory {{ apache_documentroot }}>
Require all granted
</Directory>
<Directory {{ apache_documentroot }}/Private>
Options indexes
AuthName "stop"
AuthType Basic
AuthUserFile /etc/httpd/passwd
require valid-user
</Directory>
</VirtualHost>