variante on etudie et adapte un playbook existant
This commit is contained in:
25
vhost.conf
Normal file
25
vhost.conf
Normal file
@@ -0,0 +1,25 @@
|
||||
#/home/formation/sib_10_premier_playbook/vhost.conf
|
||||
<VirtualHost *:80>
|
||||
ServerName example.org
|
||||
ServerAlias www.example.org
|
||||
ServerAlias {{ inventory_hostname }}
|
||||
DocumentRoot /var/www/html/example.org
|
||||
CustomLog {{ apache_log_dir }}/example.org_access.log combined
|
||||
ErrorLog {{ apache_log_dir }}/example.org_error.log
|
||||
<Directory />
|
||||
Options none
|
||||
Allowoverride none
|
||||
Require all denied
|
||||
</Directory>
|
||||
|
||||
<Directory /var/www/html/example.org>
|
||||
Require all granted
|
||||
</Directory>
|
||||
<Directory /var/www/html/example.org/Private>
|
||||
Options indexes
|
||||
AuthName "stop"
|
||||
AuthType Basic
|
||||
AuthUserFile /etc/{{ apache_service_name }}/passwd
|
||||
require valid-user
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
Reference in New Issue
Block a user