-
Notifications
You must be signed in to change notification settings - Fork 0
/
.apache-vhost-proxied.conf.template
39 lines (31 loc) · 1.27 KB
/
.apache-vhost-proxied.conf.template
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
# This is just an ordinary site that happens to be on our server - it could easily have been hosted elsewhere.
# In other words, it is not a fundamental part of the infrastructure.
# See also proxied.cyclestreets.net, which is the actual fundamental infrastructure that enables this external site to work.
<VirtualHost *:80>
# Available URL(s)
ServerName www.placeford.org
# Logging
CustomLog /path/to/logs/placeford-proxied-access.log combined
ErrorLog /path/to/logs/placeford-proxied-error.log
# Where the files are
DocumentRoot /path/to/files/
# Allow access
<Location />
Require all granted
</Location>
# For the cycle journey planner area, proxy the requests from proxied.cyclestreets.net
# Reverse proxy: see http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#examples
# proxy_module and proxy_http_module must have been enabled in LoadModule
# This can be done with:
# sudo a2enmod proxy
# sudo a2enmod proxy_http
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /cycling/journeyplanner http://proxied.cyclestreets.net
ProxyPassReverse /cycling/journeyplanner http://proxied.cyclestreets.net
ProxyPassReverseCookieDomain .cyclestreets.net .placeford.org
ProxyPassReverseCookiePath / /cycling/journeyplanner/
</VirtualHost>