rajout role a modifier
This commit is contained in:
1
tconstans.apache_formation/templates/index.html
Normal file
1
tconstans.apache_formation/templates/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<h1>Welcome aboard {{ ansible_hostname }}</h1>
|
||||
23
tconstans.apache_formation/templates/vhost.conf
Normal file
23
tconstans.apache_formation/templates/vhost.conf
Normal file
@@ -0,0 +1,23 @@
|
||||
<VirtualHost *:80>
|
||||
ServerName orsys.fr
|
||||
ServerAlias www.orsys.fr
|
||||
DocumentRoot /var/www/html/orsys.fr
|
||||
CustomLog /var/log/httpd/orsys.fr_access.log combined
|
||||
ErrorLog /var/log/httpd/orsys.fr_error.log
|
||||
<Directory />
|
||||
Options none
|
||||
Allowoverride none
|
||||
Require all denied
|
||||
</Directory>
|
||||
|
||||
<Directory /var/www/html/orsys.fr>
|
||||
Require all granted
|
||||
</Directory>
|
||||
<Directory /var/www/html/orsys.fr/Private>
|
||||
Options indexes
|
||||
AuthName "stop"
|
||||
AuthType Basic
|
||||
AuthUserFile /etc/httpd/passwd
|
||||
require valid-user
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
Reference in New Issue
Block a user