d155ef6bf093e27502200ee9977f220d6158763a
[mirror/dsa-puppet.git] / modules / roles / files / debsources / sources.debian.org.conf
1 Use common-debian-service-https-redirect * sources.debian.org
2
3 WSGIDaemonProcess sources.debian.org user=nobody group=debsources home=/ processes=2 threads=5 maximum-requests=5000 inactivity-timeout=1800 umask=0077 display-name=wsgi-debsources.debian.org
4
5 <VirtualHost *:443>
6     ServerName sources.debian.org
7     ServerAdmin debian-admin@lists.debian.org
8
9     Use common-debian-service-ssl sources.debian.org
10     Use common-ssl-HSTS
11     Use http-pkp-sources.debian.org
12
13     <IfModule mod_userdir.c>
14         UserDir disabled
15     </IfModule>
16     ErrorLog /var/log/apache2/sources.debian.org-error.log
17     CustomLog /var/log/apache2/sources.debian.org-access.log privacy
18     ServerSignature On
19
20     <Directory /srv/sources.debian.org/sources>
21         Options Indexes
22         AllowOverride None
23         DirectoryIndex disabled
24         IndexOptions +ShowForbidden -FancyIndexing -HTMLTable +SuppressHTMLPreamble +XHTML
25         # Note: mods-enabled/autoindex.conf has IndexIgnore set to
26         # ignore all hidden files by default. For +ShowForbidden to be
27         # practically useful, that entry should be commented out (or
28         # reset'd with IndexOptionsReset, but only starting from Apache
29         # 2.3).
30
31         Require all granted
32         <Files ~ "^\.ht">
33             # override default (Debian) setting in /etc/apache2/apache2.conf
34             # we want to list .htaccess and friends if they are part of packages.
35             Require all granted
36         </Files>
37
38         SetHandler None
39         # ForceType text/plain
40     </Directory>
41
42     <Directory /srv/sources.debian.org/static>
43         Options FollowSymLinks
44         Require all granted
45     </Directory>
46
47     Alias /data/ /srv/sources.debian.org/sources/
48     Alias /static/ /srv/sources.debian.org/static/
49
50     <Directory /srv/sources.debian.org/etc>
51         <Files debsources.wsgi>
52             Require all granted
53         </Files>
54     </Directory>
55
56     WSGIScriptAlias / /srv/sources.debian.org/etc/debsources.wsgi
57     WSGIProcessGroup sources.debian.org
58 </VirtualHost>
59
60 # vim: syntax=apache ts=4 sw=4 sts=4 sr et