mirror of
https://github.com/Aviortheking/Blog_IMIE.git
synced 2025-06-12 18:19:30 +00:00
Add ansible files
This commit is contained in:
17
ops/ansible/roles/templates/virtualhost.j2
Normal file
17
ops/ansible/roles/templates/virtualhost.j2
Normal file
@ -0,0 +1,17 @@
|
||||
<VirtualHost *:{{ http_port }}>
|
||||
ServerAdmin webmaster@{{ domain }}
|
||||
ServerName {{ domain }}
|
||||
ServerAlias www.{{ domain }}
|
||||
|
||||
DocumentRoot /var/www/{{ domain }}
|
||||
|
||||
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||
|
||||
<Directory "/var/www/{{ domain }}">
|
||||
AuthType Basic
|
||||
AuthName "Restricted Content"
|
||||
AuthUserFile /etc/apache2/.htpasswd
|
||||
Require valid-user
|
||||
</Directory>
|
||||
</VirtualHost>
|
Reference in New Issue
Block a user