initial commit
This commit is contained in:
28
myapache5/templates/vhost.conf.jj
Normal file
28
myapache5/templates/vhost.conf.jj
Normal file
@@ -0,0 +1,28 @@
|
||||
{% for vhost in apache_vhosts %}
|
||||
<VirtualHost *:{{ http_port }}>
|
||||
ServerName {{ vhost.servername|lower }}
|
||||
ServerAlias {{ vhost.serveralias }}
|
||||
DocumentRoot {{ vhost.documentroot }}
|
||||
CustomLog {{ vhost.accesslog }} combined
|
||||
ErrorLog {{ vhost.errorlog }}
|
||||
<Directory />
|
||||
Options none
|
||||
Allowoverride none
|
||||
Require all denied
|
||||
</Directory>
|
||||
|
||||
<Directory {{ vhost.documentroot }}>
|
||||
Options {{ vhost.documentrootoptions|default( "none" ) }}
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
Alias /private /usr/share/doc
|
||||
<Directory /usr/share/doc>
|
||||
Options indexes
|
||||
AuthName "stop"
|
||||
AuthType Basic
|
||||
AuthUserFile {{ apache_conf_dir }}/passwd
|
||||
require valid-user
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
{% endfor %}
|
||||
Reference in New Issue
Block a user