summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2012-12-08 15:34:53 +0100
committerHolger Levsen <holger@layer-acht.org>2012-12-08 15:34:53 +0100
commitceaa417fad1acc400c610f17e2e59852aa5fe209 (patch)
tree841e9a1573056712efb00d519d1ec82d9f032988 /etc
parent38898405e7f65b75cb93e081466dd1fe2632ea97 (diff)
downloadjenkins.debian.net-ceaa417fad1acc400c610f17e2e59852aa5fe209.tar.xz
allow certain params only from alioth (token is used to trigger builds)
Diffstat (limited to 'etc')
-rw-r--r--etc/apache2/sites-available/jenkins.debian.net9
1 files changed, 8 insertions, 1 deletions
diff --git a/etc/apache2/sites-available/jenkins.debian.net b/etc/apache2/sites-available/jenkins.debian.net
index c26de24d..ddd739ee 100644
--- a/etc/apache2/sites-available/jenkins.debian.net
+++ b/etc/apache2/sites-available/jenkins.debian.net
@@ -21,13 +21,20 @@
Allow from all
</Directory>
+ # allow certain params only from alioth (token is used to trigger builds)
+ RewriteEngine on
+ RewriteCond %{REMOTE_ADDR} !217\.196\.43\.140
+ #RewriteCond %{REMOTE_HOST} !.*.debian.org
+ RewriteCond %{QUERY_STRING} token
+ RewriteRule ^ - [F]
+
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPreserveHost on
- # proxy everything but /munin
+ # proxy everything but a few urls
ProxyPass /munin !
ProxyPass /server-status !
ProxyPass /visitors-report.html !