From: Peter Palfrader Date: Sun, 24 Sep 2017 18:09:21 +0000 (+0200) Subject: Actually add the template X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=c0df7e3b79a8e51d2a1b694ba7fca00411d4e65e;p=mirror%2Fdsa-puppet.git Actually add the template --- diff --git a/modules/salsa/templates/apache-pages.debian.net.conf.erb b/modules/salsa/templates/apache-pages.debian.net.conf.erb new file mode 100644 index 000000000..e925623f7 --- /dev/null +++ b/modules/salsa/templates/apache-pages.debian.net.conf.erb @@ -0,0 +1,43 @@ +#Use common-debian-service-https-redirect * XX.debian.org + +# + + ServerName pages.debian.net + ServerAlias *.pages.debian.net + ServerAdmin debian-admin@lists.debian.org + + #Use common-debian-service-ssl salsa.debian.org + #Use common-ssl-HSTS + #Use http-pkp-salsa.debian.org + + ErrorLog /var/log/apache2/pages.debian.net-error.log + CustomLog /var/log/apache2/pages.debian.net-access.log privacy + + #DocumentRoot /srv/salsa.debian.org/gitlab/public + # + # Require all granted + # + + ProxyPreserveHost On + AllowEncodedSlashes NoDecode + + ProxyPassReverse / http://127.0.0.1:8090/ + #ProxyPassReverse / http://salsa.debian.org/ + + RewriteEngine on + #RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f [OR] + #RewriteCond %{REQUEST_URI} ^/uploads/.* + RewriteRule .* http://127.0.0.1:8090%{REQUEST_URI} [P,QSA,NE] + + #RequestHeader set X_FORWARDED_PROTO 'https' + #RequestHeader set X-Forwarded-Ssl on + + ErrorDocument 403 /403.html + ErrorDocument 404 /404.html + #ErrorDocument 422 /422.html + #ErrorDocument 500 /500.html + #ErrorDocument 502 /502.html + #ErrorDocument 503 /503.html + + +# vim:set syn=apache: