solution abr
This commit is contained in:
6
Readme.md
Normal file
6
Readme.md
Normal file
@@ -0,0 +1,6 @@
|
||||
# Playbook d'installation apache
|
||||
|
||||
LEs fichiers vhost.conf et index.html sont récupérés par le pilote
|
||||
|
||||
directement depuis le dépôt git
|
||||
|
||||
24
vhost.conf
24
vhost.conf
@@ -1,24 +0,0 @@
|
||||
<VirtualHost *:80>
|
||||
ServerName example.org
|
||||
ServerAlias www.example.org
|
||||
ServerAlias {{ inventory_hostname }}
|
||||
DocumentRoot /var/www/html/example.org
|
||||
CustomLog /var/log/httpd/example.org_access.log combined
|
||||
ErrorLog /var/log/httpd/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/httpd/passwd
|
||||
require valid-user
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
Reference in New Issue
Block a user