24 lines
657 B
Plaintext
24 lines
657 B
Plaintext
<VirtualHost *:80>
|
|
ServerName example.fr
|
|
ServerAlias www.example.fr
|
|
ServerAlias {{ inventory_hostname }}
|
|
DocumentRoot /var/www/html/example.fr
|
|
CustomLog /var/log/httpd/example.fr_access.log combined
|
|
ErrorLog /var/log/httpd/example.fr_error.log
|
|
<Directory />
|
|
Options none
|
|
Allowoverride none
|
|
Require all denied
|
|
</Directory>
|
|
|
|
<Directory /var/www/html/example.fr>
|
|
Require all granted
|
|
</Directory>
|
|
<Directory /var/www/html/example.fr/Private>
|
|
Options indexes
|
|
AuthName "stop"
|
|
AuthType Basic
|
|
AuthUserFile /etc/httpd/passwd
|
|
require valid-user
|
|
</Directory>
|
|
</VirtualHost> |