initial commit

This commit is contained in:
2020-09-22 15:42:05 +02:00
commit fa38c349be
13 changed files with 205 additions and 0 deletions

View File

@@ -0,0 +1 @@
<h1>Welcome aboard {{ ansible_hostname }}</h1>

View File

@@ -0,0 +1,24 @@
<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>