From 0fc1cb64def2ac7c0e234670d2c72bd71107a818 Mon Sep 17 00:00:00 2001 From: Harald Pfeiffer Date: Tue, 26 Jun 2018 23:32:40 +0200 Subject: Initial commit --- apache/cgit.conf | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 apache/cgit.conf (limited to 'apache') diff --git a/apache/cgit.conf b/apache/cgit.conf new file mode 100644 index 0000000..30c9d04 --- /dev/null +++ b/apache/cgit.conf @@ -0,0 +1,56 @@ +#vim:syntax=apache + + + + ServerName git.lirion.de + ServerAlias git.lirion.de + ServerSignature Off + + RewriteEngine on + RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] + RewriteRule ^(.*)$ http://%1/$1 [R=301,L] + RewriteCond %{HTTPS} !=on + RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [NE,R,L] + + + header set Public-Key-Pins 'pin-sha256="NxMynxRVjjSnl8BnON+6WwexY53HOyKtctua48Am6xA=";pin-sha256="8cwqjzxOlLuW9OGaHAj5GG6DCgZdXEd+OB9UJPWV9KE=";max-age=2419200;' + ServerAdmin webmaster@lirion.net + ServerName git.lirion.de + ServerAlias git.lirion.de git.lirion.net + # not my true DocRoot. Remember to replace this, and pay respect to the FHS, kids! + DocumentRoot "/www/cgit" + + + AllowOverride None + Options ExecCGI FollowSymlinks + Order allow,deny + Allow from all + + + Alias /cgit.css "/www/cgit/cgit.css" + Alias /cgit.png "/www/cgit/cgit.png" + Alias /favicon.ico "/www/cgit/favicon.ico" + Alias /assets "/www/cgit/assets" + Alias /fonts "/www/cgit/fonts" + ScriptAlias / "/usr/lib/cgit/cgit.cgi/" + + ErrorLog ${APACHE_LOG_DIR}/git.lirion.de-error.log + LogLevel warn + CustomLog ${APACHE_LOG_DIR}/git.lirion.de-access.log combined + SSLEngine on + # same as above - this is not the true entry. Adjust! + SSLCertificateKeyFile /ssl/private/git.lirion.de.key + SSLCertificateFile /ssl/public/git.lirion.de-chain.pem + + SSLOptions +StdEnvVars + + + SSLOptions +StdEnvVars + + BrowserMatch "MSIE [2-6]" \ + nokeepalive ssl-unclean-shutdown \ + downgrade-1.0 force-response-1.0 + # MSIE 7 and newer should be able to use keepalive + BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown + + -- cgit v1.2.3