projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
class documentation
[mirror/dsa-puppet.git]
/
modules
/
roles
/
templates
/
static-mirroring
/
static-vhost.conf.erb
diff --git
a/modules/roles/templates/static-mirroring/static-vhost.conf.erb
b/modules/roles/templates/static-mirroring/static-vhost.conf.erb
index
6ab16d3
..
ab2bb4f
100644
(file)
--- a/
modules/roles/templates/static-mirroring/static-vhost.conf.erb
+++ b/
modules/roles/templates/static-mirroring/static-vhost.conf.erb
@@
-8,18
+8,18
@@
DocumentRoot /srv/static.debian.org/mirrors/$name/cur
<Directory /srv/static.debian.org/mirrors/$name/cur>
DocumentRoot /srv/static.debian.org/mirrors/$name/cur
<Directory /srv/static.debian.org/mirrors/$name/cur>
- AllowOverride FileInfo
- Options Multiviews Indexes FollowSymLinks
+ AllowOverride FileInfo Indexes Options=Multiviews
IndexOptions FancyIndexing NameWidth=*
Order allow,deny
Allow from all
</Directory>
IndexOptions FancyIndexing NameWidth=*
Order allow,deny
Allow from all
</Directory>
+ DefaultType text/plain
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
</Macro>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
</Macro>
-<Macro common-static-vhost
$name
>
+<Macro common-static-vhost
-with-extra $name $extra
>
<Virtualhost <%= vhost_listen %> >
ServerName $name
ServerAdmin debian-admin@lists.debian.org
<Virtualhost <%= vhost_listen %> >
ServerName $name
ServerAdmin debian-admin@lists.debian.org
@@
-28,6
+28,7
@@
CustomLog /var/log/apache2/$name-access.log privacy
Use common-static-base $name
CustomLog /var/log/apache2/$name-access.log privacy
Use common-static-base $name
+ $extra
</VirtualHost>
</Macro>
</VirtualHost>
</Macro>
@@
-46,5
+47,9
@@
</VirtualHost>
</Macro>
</VirtualHost>
</Macro>
+<Macro common-static-vhost $name>
+ Use common-static-vhost-with-extra $name "# nada"
+</Macro>
+
# vim:ft=apache:
# vim:ft=apache: