Commit 086aa902 authored by Peter Palfrader's avatar Peter Palfrader

forbid POST requests to snapshot

parent 612215d0
......@@ -18,6 +18,11 @@ WSGIDaemonProcess snapshot.debian.org user=nobody group=nogroup home=/ processes
AliasMatch ^/gits/(.*)$ /srv/snapshot.debian.org/all-git/$1
RewriteEngine on
# forbid POST requests
RewriteCond %{REQUEST_METHOD} POST
RewriteRule .* - [F,L]
RewriteRule ^/archive/backports.org/(.*) /archive/debian-backports/$1 [L,R]
RewriteRule ^/git/(.*) /gits/snapshot.git/$1 [PT]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment