1 # vim: set ts=2 sw=2 et si sm:
3 WSGIDaemonProcess snapshot.debian.org user=nobody group=nogroup home=/ processes=4 threads=10 maximum-requests=5000 inactivity-timeout=1800 umask=0077 display-name=wsgi-snapshot.debian.org
6 ServerName snapshot.debian.org
7 ServerAlias snapshot-dev.debian.org snapshot-master.debian.org snapshot-*.debian.org snapshot.debian.net
8 ServerAdmin team@snapshot.debian.org
10 ErrorLog /var/log/apache2/snapshot.debian.org-error.log
11 CustomLog /var/log/apache2/snapshot.debian.org-access.log combined
13 Alias /static /srv/snapshot.debian.org/web/public/static
14 Alias /robots.txt /srv/snapshot.debian.org/web/public/robots.txt
16 SetEnv GIT_PROJECT_ROOT /srv/snapshot.debian.org/all-git
17 AliasMatch ^/gits/(.*)$ /srv/snapshot.debian.org/all-git/$1
21 # forbid POST requests
22 RewriteCond %{REQUEST_METHOD} POST
23 RewriteRule .* - [F,L]
25 RewriteRule ^/archive/backports.org/(.*) /archive/debian-backports/$1 [L,R]
26 RewriteRule ^/git/(.*) /gits/snapshot.git/$1 [PT]
28 RewriteCond %{HTTP_HOST} ^snapshot.debian.net$
29 RewriteRule ^/(.*)$ http://snapshot.debian.org/ [R]
34 <Directory /srv/snapshot.debian.org/web/public>
37 <Directory /srv/snapshot.debian.org/bin>
43 WSGIScriptAlias / /srv/snapshot.debian.org/bin/snapshot.wsgi
44 WSGIProcessGroup snapshot.debian.org
48 ServerName snapshots.debian.org
49 RedirectPermanent / http://snapshot.debian.org/