postgres-make-base-backups: re-order logic for consistency
[mirror/dsa-puppet.git] / modules / salsa / templates / apache-salsa.debian.org.conf.erb
1 Use common-debian-service-https-redirect * salsa.debian.org
2
3 <VirtualHost *:443>
4         ServerName salsa.debian.org
5         ServerAdmin debian-admin@lists.debian.org
6
7         Use common-debian-service-ssl salsa.debian.org
8         Use common-ssl-HSTS
9         Use http-pkp-salsa.debian.org
10
11         ErrorLog /var/log/apache2/salsa.debian.org-error.log
12         CustomLog /var/log/apache2/salsa.debian.org-access.log privacy
13
14         DocumentRoot /srv/salsa.debian.org/gitlab/public
15         <Directory /srv/salsa.debian.org/gitlab/public>
16                 Require all granted
17         </Directory>
18
19         ProxyPreserveHost On
20         AllowEncodedSlashes NoDecode
21
22         ProxyPass / http://127.0.0.1:8181/ retry=10 nocanon
23         ProxyPassReverse / http://127.0.0.1:8181/
24         ProxyPassReverse / http://salsa.debian.org/
25
26         #RewriteEngine on
27         #RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f [OR]
28         #RewriteCond %{REQUEST_URI} ^/uploads/.*
29         #RewriteRule .* http://127.0.0.1:8181%{REQUEST_URI} [P,QSA,NE]
30
31         RequestHeader set X_FORWARDED_PROTO 'https'
32         RequestHeader set X-Forwarded-Ssl on
33
34         ErrorDocument 404 /404.html
35         ErrorDocument 422 /422.html
36         ErrorDocument 500 /500.html
37         ErrorDocument 502 /502.html
38         ErrorDocument 503 /503.html
39 </VirtualHost>
40
41 # vim:set syn=apache: