Skip to content
Snippets Groups Projects
Commit 9a25ab17 authored by Scotty Logan's avatar Scotty Logan
Browse files

made login.itlab main IdP; removed authz; weblogin is a redirector

parent 36547a37
No related branches found
No related tags found
No related merge requests found
<Context
docBase="/opt/mitreid-connect/webapp"
privileged="true"
antiResourceLocking="false"
unpackWAR="false"
swallowOutput="true" />
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
SSLCACertificateFile="/opt/shibboleth-idp/credentials/cloudpath-itlab.full.pem" SSLCACertificateFile="/opt/shibboleth-idp/credentials/cloudpath-itlab.full.pem"
SSLVerifyClient="none" SSLVerifyClient="none"
SSLProtocol="TLSv1.2" SSLProtocol="TLSv1.2"
SSLCipherSuite="ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:AES256-GCM-SHA384"
SSLHonorCipherOrder="on" SSLHonorCipherOrder="on"
SSLCipherSuite="ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:AES256-GCM-SHA384"
/> />
<Connector port="80" protocol="HTTP/1.1" <Connector port="80" protocol="HTTP/1.1"
...@@ -26,44 +26,42 @@ ...@@ -26,44 +26,42 @@
URIEncoding="UTF-8" URIEncoding="UTF-8"
redirectPort="443" /> redirectPort="443" />
<Engine name="Catalina" defaultHost="weblogin.itlab.stanford.edu"> <Engine name="Catalina" defaultHost="login.itlab.stanford.edu">
<Realm className="org.apache.catalina.realm.CombinedRealm"> <Realm className="org.apache.catalina.realm.CombinedRealm">
<Realm className="net.unicon.tomcat7.realm.X509AuthenticationBypassingRealm"/> <Realm className="net.unicon.tomcat7.realm.X509AuthenticationBypassingRealm"/>
</Realm> </Realm>
<Host name="weblogin.itlab.stanford.edu" <Host name="login.itlab.stanford.edu"
appBase="webapps" appBase="webapps"
unpackWARs="false" unpackWARs="false"
autoDeploy="false" autoDeploy="false"
xmlValidation="false" xmlValidation="false"
xmlNamespaceAware="false"> xmlNamespaceAware="false">
<Alias>localhost</Alias> <Alias>localhost</Alias>
<Alias>login.itlab.stanford.edu</Alias>
<Valve className="org.apache.catalina.valves.AccessLogValve" <Valve className="org.apache.catalina.valves.AccessLogValve"
prefix="weblogin_access" suffix=".log" prefix="login_access" suffix=".log"
pattern='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-agent}i"' /> pattern='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-agent}i"' />
<!-- pattern="common" /> -->
<!-- pattern='%h %l %u %t "%r" %s %b "%{Accept}i" "%{host}i"' /> -->
<Valve className="org.apache.catalina.valves.RemoteAddrValve" <Valve className="org.apache.catalina.valves.RemoteAddrValve"
addConnectorPort="true" addConnectorPort="true"
allow="127\.0\.0\.1;80|::1;80|.*;80|.*;443"/> allow="127\.0\.0\.1;80|::1;80|.*;80|.*;443"/>
</Host> </Host>
<Host name="authz.itlab.stanford.edu" <Host name="weblogin.itlab.stanford.edu"
appBase="webapps" appBase="webapps"
unpackWARs="false" unpackWARs="false"
autoDeploy="false" autoDeploy="false"
xmlValidation="false" xmlValidation="false"
xmlNamespaceAware="false"> xmlNamespaceAware="false">
<Valve className="org.apache.catalina.valves.AccessLogValve" <Context path="" docBase="/opt/weblogin">
prefix="authz_access" suffix=".log" <Valve className="org.apache.catalina.valves.AccessLogValve"
pattern='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-agent}i"' /> prefix="weblogin_access" suffix=".log"
<!-- pattern="common" /> --> pattern='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-agent}i"' />
<!-- pattern='%h %l %u %t "%r" %s %b "%{Accept}i" "%{host}i"' /> --> <Valve className="org.apache.catalina.valves.RemoteAddrValve"
<Valve className="org.apache.catalina.valves.RemoteAddrValve" addConnectorPort="true"
addConnectorPort="true" allow="127\.0\.0\.1;80|::1;80|.*;80|.*;443"/>
allow="127\.0\.0\.1;80|::1;80|.*;80|.*;443"/> <Valve className="org.apache.catalina.valves.rewrite.RewriteValve" />
</Context>
</Host> </Host>
</Engine> </Engine>
......
# no more metadata.xml
RewriteRule ^/metadata.xml$ /idp/shibboleth [L]
# no more idp-metadata.xml
RewriteRule ^/idp-metadata.xml$ /idp/shibboleth [L]
# root redirects to the SAML service page (in production),
# but a blog post in itlab
RewriteCond %{HTTP_ACCEPT} ^.*text/html.*$
RewriteRule ^/$ https://itarch.stanford.edu/it-lab-idp [R=301,L]
#RewriteRule ^/$ https://uit.stanford.edu/service/saml [R=301,L]
RewriteRule ^/$ /idp/shibboleth [L]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment