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