Skip to content
Snippets Groups Projects
Commit bca2c227 authored by Thomas Wood's avatar Thomas Wood
Browse files

Fix .htaccess rules for /ci/

parent cf7a1fc9
No related branches found
No related tags found
No related merge requests found
BrowserMatch ^GitHub-Hookshot github_bot
Order deny,allow
Deny from all
Allow from 146.169
Allow from 146.179
Allow from 155.198
Allow from 131.254
Allow from env=github_bot
RewriteEngine On RewriteEngine On
RewriteBase /ci/
# Append missing directory slashes for top-level paths
RewriteRule ^([^/]+)$ $1/ [R,L]
# Force to HTTPS
RewriteCond %{HTTPS} =off [OR]
RewriteCond %{HTTP_HOST} !=psvg.doc.ic.ac.uk
RewriteRule ^(.*)$ https://psvg.doc.ic.ac.uk/ci/$1 [R=301,L]
# Proxy through to the internal server <If "%{HTTPS} == 'off' || %{HTTP_HOST} != 'psvg.doc.ic.ac.uk'">
RewriteRule ^(.*)$ https://146.169.46.217/ci/$1 [P] RewriteRule ^/vol/rr/www/(.*) https://psvg.doc.ic.ac.uk/$1 [R=301,L]
</If>
<Else>
AuthType KerberosV5
AuthName "PSVG Group Members Only -- Imperial College Login"
Require group rr
# Proxy through to the internal server
RewriteRule ^/vol/rr/www/(.*) https://146.169.46.217/$1 [P]
</Else>
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