summaryrefslogtreecommitdiffstats
path: root/etc/apache2/sites-available
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-02-08 00:10:17 +0100
committerHolger Levsen <holger@layer-acht.org>2015-02-08 09:28:21 +0100
commitdfdb272c35bcd7128e5e6927ad34a07d2f1f77af (patch)
treead91cab6dd1b9f9aeb3920f6871e294ca172b4e8 /etc/apache2/sites-available
parent03d97c0abbcf6e5acfe402267f4302e901212e41 (diff)
downloadjenkins.debian.net-dfdb272c35bcd7128e5e6927ad34a07d2f1f77af.tar.xz
apache: better comments
Diffstat (limited to 'etc/apache2/sites-available')
-rw-r--r--etc/apache2/sites-available/jenkins.debian.net8
1 files changed, 5 insertions, 3 deletions
diff --git a/etc/apache2/sites-available/jenkins.debian.net b/etc/apache2/sites-available/jenkins.debian.net
index 736a1b59..20bb3eb3 100644
--- a/etc/apache2/sites-available/jenkins.debian.net
+++ b/etc/apache2/sites-available/jenkins.debian.net
@@ -94,16 +94,15 @@ NameVirtualHost *:443
RewriteEngine on
ProxyRequests Off
+ # HSTS
RequestHeader set X-Forwarded-Proto "https"
RequestHeader set X-Forwarded-Port "443"
Header always add Strict-Transport-Security "max-age=15552000"
ErrorLog ${APACHE_LOG_DIR}/error.log
-
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
-
CustomLog ${APACHE_LOG_DIR}/access.log combined
</Macro>
@@ -124,7 +123,7 @@ Use common-debian-service-https-redirect reproducible.debian.net
RewriteCond %{QUERY_STRING} token
RewriteRule ^ - [F]
- # a bunch of redirect to point people to https:reproducible.debian.net
+ # a bunch of redirects to point people to https://reproducible.debian.net
RewriteCond %{HTTP_HOST} jenkins\.debian\.net
RewriteCond %{REQUEST_URI} ^/userContent/reproducible.html$ [or]
RewriteCond %{REQUEST_URI} ^/userContent/reproducible.json$ [or]
@@ -178,16 +177,19 @@ Use common-debian-service-https-redirect reproducible.debian.net
DocumentRoot /var/lib/jenkins/userContent
+ # use reproducible.html as "home page"
RewriteCond %{HTTP_HOST} reproducible\.debian\.net
RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^/(.*) /reproducible.html [R,L]
+ # drop the (old|ugly) /userContent/ directory from the url
RewriteCond %{HTTP_HOST} reproducible\.debian\.net
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^/userContent
RewriteRule ^/userContent/(.*)$ /$1 [R=301,L]
+ # redirect rb.d.n/$PKG → rb.d.n/rb-pkg/$PKG.html
RewriteCond %{HTTP_HOST} reproducible\.debian\.net
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d