mirror of
https://github.com/Aviortheking/Blog_IMIE.git
synced 2025-04-23 19:32:15 +00:00
18 lines
447 B
Django/Jinja
18 lines
447 B
Django/Jinja
<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>
|