projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bits.d.o: redirect everything but /feeds to https
[mirror/dsa-puppet.git]
/
modules
/
roles
/
templates
/
static-mirroring
/
vhost
/
static-vhosts-simple.erb
diff --git
a/modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb
b/modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb
index
79531d2
..
2e0ed8c
100644
(file)
--- a/
modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb
+++ b/
modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb
@@
-28,6
+28,13
@@
Use common-static-vhost-with-extra security-team.debian.org "ServerAlias securit
</Macro>
<Virtualhost <%= vhost_listen %> >
</Macro>
<Virtualhost <%= vhost_listen %> >
+ RewriteEngine on
+
+ RewriteEngine On
+ RewriteCond %{REQUEST_URI} !^/feeds/
+ RewriteRule ^/(.*)$ https://bits.debian.org/$1 [R,L]
+ #RewriteRule ^/(.*)$ https://bits.debian.org/$1 [NC,R=301,L]
+
Use static-bits.debian.org-base
CustomLog /var/log/apache2/bits.debian.org-access.log privacy
</VirtualHost>
Use static-bits.debian.org-base
CustomLog /var/log/apache2/bits.debian.org-access.log privacy
</VirtualHost>