Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
psvg.doc.ic.ac.uk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
xr119
psvg.doc.ic.ac.uk
Commits
bca2c227
Commit
bca2c227
authored
8 years ago
by
Thomas Wood
Browse files
Options
Downloads
Patches
Plain Diff
Fix .htaccess rules for /ci/
parent
cf7a1fc9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ci/.htaccess
+11
-21
11 additions, 21 deletions
ci/.htaccess
with
11 additions
and
21 deletions
ci/.htaccess
+
11
−
21
View file @
bca2c227
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
>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment