summaryrefslogtreecommitdiffstats
path: root/shib_secondary/remote/110-bwlp-passthrough.conf
blob: ebb03676dd59ab9d9a6fb932951107e8bb36f0f7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<VirtualHost *:443>
	ServerName %DOMAIN%

	UseCanonicalName On

	DocumentRoot /var/www/masterserver

	<Directory />
		Options FollowSymLinks
		AllowOverride None
	</Directory>

	<Location /shibboleth-ds>
		Require all granted
		AuthType shibboleth
		ShibRequestSetting requireSession false
		require shibboleth
	</Location>

	<Location /Shibboleth.sso>
		AuthType None
		Require all granted
	</Location>
	<Location /shibboleth-sp>
		AuthType None
		Require all granted
	</Location>

	Alias /shibboleth-sp/main.css /usr/share/shibboleth/main.css
	Alias /shibboleth-sp/logo.jpg /usr/share/shibboleth/logo.jpg

	SSLProxyEngine on
	<LocationMatch ^/(webif/|netboot/|minilinux/|rpc/|Shibboleth\.sso/|thrift/|error_report.php)(.*)$>
		ProxyPassMatch "https://%DOMAIN%/$1$2" connectiontimeout=5 timeout=30 max=10
	</LocationMatch>

	# optional (Metadata-Access at entityID-URL)
	Redirect seeother /shibboleth /Shibboleth.sso/Metadata
	RedirectMatch /start-session$ /Shibboleth.sso/Login

	LogLevel warn
	ErrorLog ${APACHE_LOG_DIR}/masterserver/error.log
	CustomLog ${APACHE_LOG_DIR}/masterserver/access.log combined

	SSLEngine on
	SSLOptions +StrictRequire
	# HSTS (mod_headers is required) (15768000 seconds = 6 months)
	Header always set Strict-Transport-Security "max-age=15768000"

	SSLCertificateFile      /opt/bwlp/ssl/live/ssl-cert/cert.pem
	SSLCertificateKeyFile   /opt/bwlp/ssl/live/ssl-cert/privkey.pem
	SSLCertificateChainFile /opt/bwlp/ssl/live/ssl-cert/chain.pem

	<FilesMatch "\.(cgi|shtml|phtml|php)$">
		SSLOptions +StdEnvVars
	</FilesMatch>

</VirtualHost>