initial commit
This commit is contained in:
1
tco.apache_abrd4/templates/index.txt
Normal file
1
tco.apache_abrd4/templates/index.txt
Normal file
@@ -0,0 +1 @@
|
||||
<h1>hello World {{ apache_server_name }} </h1>
|
||||
24
tco.apache_abrd4/templates/vhost.conf
Normal file
24
tco.apache_abrd4/templates/vhost.conf
Normal file
@@ -0,0 +1,24 @@
|
||||
<VirtualHost *:80>
|
||||
ServerName {{ apache_server_name }}
|
||||
ServerAlias www.{{ apache_server_name }}
|
||||
ServerAlias {{ inventory_hostname }}
|
||||
DocumentRoot {{ apache_document_root }}{{ apache_server_name }}
|
||||
CustomLog {{ apache_log_dir }}/{{ apache_server_name }}_access.log combined
|
||||
ErrorLog {{ apache_log_dir }}/{{ apache_server_name }}_error.log
|
||||
<Directory />
|
||||
Options none
|
||||
Allowoverride none
|
||||
Require all denied
|
||||
</Directory>
|
||||
|
||||
<Directory {{ apache_document_root }}{{ apache_server_name }}>
|
||||
Require all granted
|
||||
</Directory>
|
||||
<Directory {{ apache_document_root }}{{ apache_server_name }}/Private>
|
||||
Options indexes
|
||||
AuthName "stop"
|
||||
AuthType Basic
|
||||
AuthUserFile {{ apache_config_dir }}/passwd
|
||||
require valid-user
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
Reference in New Issue
Block a user