RT#7513 Get rid of most traces of moszumanska
[mirror/dsa-puppet.git] / modules / roles / templates / snapshot / snapshot.debian.org.conf.erb
1 # vim: set ts=2 sw=2 et si sm:
2
3 WSGIDaemonProcess snapshot.debian.org user=nobody group=nogroup home=/ processes=4 threads=9 maximum-requests=5000 inactivity-timeout=1800 umask=0077 display-name=wsgi-snapshot.debian.org
4
5 <VirtualHost *:80>
6   ServerName snapshot.debian.org
7   ServerAlias snapshot-dev.debian.org snapshot-master.debian.org snapshot-*.debian.org
8   ServerAdmin team@snapshot.debian.org
9
10   ErrorLog  /var/log/apache2/snapshot.debian.org-error.log
11   CustomLog /var/log/apache2/snapshot.debian.org-access.log combined
12
13   Alias /static      /srv/snapshot.debian.org/web/public/static
14   Alias /robots.txt  /srv/snapshot.debian.org/web/public/robots.txt
15
16   SetEnv GIT_PROJECT_ROOT /srv/snapshot.debian.org/all-git
17   AliasMatch ^/gits/(.*)$ /srv/snapshot.debian.org/all-git/$1
18
19   RewriteEngine on
20
21   # forbid POST requests
22   RewriteCond %{REQUEST_METHOD} POST
23   RewriteRule .* - [F,L]
24
25   RewriteRule ^/archive/backports.org/(.*) /archive/debian-backports/$1 [L,R]
26   RewriteRule ^/git/(.*) /gits/snapshot.git/$1 [PT]
27
28   <Location /gits/>
29     Require all granted
30   </Location>
31   <Directory /srv/snapshot.debian.org/web/public>
32     Require all granted
33   </Directory>
34   <Directory /srv/snapshot.debian.org/bin>
35     <Files snapshot.wsgi>
36       Require all granted
37     </Files>
38   </Directory>
39
40   WSGIScriptAlias / /srv/snapshot.debian.org/bin/snapshot.wsgi
41   WSGIProcessGroup snapshot.debian.org
42
43   <IfModule mod_qos.c>
44     QS_LocRequestLimitDefault  30
45   </IfModule>
46 </VirtualHost>
47
48 <VirtualHost *:80>
49   ServerName snapshot.debian.net
50   ServerAdmin team@snapshot.debian.org
51
52   ErrorLog  /var/log/apache2/snapshot.debian.net-error.log
53   CustomLog /var/log/apache2/snapshot.debian.net-access.log combined
54
55   RewriteRule ^/(.*)$ http://snapshot.debian.org/ [R]
56 </VirtualHost>
57
58 <VirtualHost *:80>
59   ServerName snapshots.debian.org
60   RedirectPermanent / http://snapshot.debian.org/
61 </VirtualHost>