Skip to content

Commit e3043eb

Browse files
committed
Add Apache configs for Votr
1 parent fc33957 commit e3043eb

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<VirtualHost *:443>
2+
ServerName aisproxy.unibatest.internal
3+
SSLEngine on
4+
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
5+
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
6+
DocumentRoot /nonexistent
7+
ErrorLog ${APACHE_LOG_DIR}/aisproxy-error.log
8+
CustomLog ${APACHE_LOG_DIR}/aisproxy-access.log combined
9+
<LocationMatch ^/(?!ais/logout.do)>
10+
ProxyPassMatch "http://localhost:4719"
11+
ProxyPreserveHost off
12+
ProxyAddHeaders off
13+
MellonEnable "auth"
14+
Require valid-user
15+
AuthType "Mellon"
16+
MellonSPMetadataFile /etc/apache2/aisproxy/https_aisproxy.unibatest.internal_mellon_metadata.xml
17+
MellonSPPrivateKeyFile /etc/apache2/aisproxy/https_aisproxy.unibatest.internal_mellon_metadata.key
18+
MellonSPCertFile /etc/apache2/aisproxy/https_aisproxy.unibatest.internal_mellon_metadata.cert
19+
MellonIdPMetadataFile /opt/idpswitch/active/idp-metadata.xml
20+
MellonSecureCookie On
21+
</LocationMatch>
22+
<LocationMatch ^/ais/sso/samlsso>
23+
Redirect /ais/start.do
24+
</LocationMatch>
25+
<LocationMatch ^/ais/logout.do>
26+
Redirect gone
27+
</LocationMatch>
28+
</VirtualHost>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<VirtualHost *:443>
2+
ServerName votr.unibatest.internal
3+
SSLEngine on
4+
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
5+
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
6+
SSLProxyEngine on
7+
SSLProxyCheckPeerName off
8+
SSLProxyCheckPeerCN off
9+
DocumentRoot /nonexistent
10+
ErrorLog ${APACHE_LOG_DIR}/votr-error.log
11+
CustomLog ${APACHE_LOG_DIR}/votr-access.log combined
12+
<LocationMatch ^/>
13+
ProxyPassMatch "https://localhost:4723/"
14+
ProxyPreserveHost On
15+
</LocationMatch>
16+
</VirtualHost>

0 commit comments

Comments
 (0)