Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Reverse proxy for entire domain |
|
Author |
|
giopas
Joined: 18 Nov 2015 Posts: 29
|
Posted: Tue 22 Dec '15 19:34 Post subject: Reverse proxy for entire domain |
|
|
Hi,
Thanks to your support I have now get how to set up a reverse proxy for a given subdomain (eg. forum.domain.com):
Code: | <VirtualHost *:80>
ServerName reverse.proxy.com
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
<Location />
Order allow,deny
Allow from all
</Location>
ProxyPreserveHost On
ProxyPass / http://forum.domain.com/
ProxyPassReverse / http://forum.domain.com/
ProxyStatus On
</VirtualHost> |
However, which is the best way to reverse proxy also all the other sub domains of domain.com?
Let's take an example:
Code: | http://www.domain.com/
http://blog.domain.com/
http://forum.domain.com/ |
Should I create three different Virtual Hosts or there is a much more practical and flexible way?
Thanks,
giopas |
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7407 Location: EU, Germany, Next to Hamburg
|
Posted: Sat 26 Dec '15 10:39 Post subject: |
|
|
You have to create 3 vhosts. |
|
Back to top |
|
giopas
Joined: 18 Nov 2015 Posts: 29
|
Posted: Sat 26 Dec '15 19:04 Post subject: |
|
|
Ok, thanks JB!
Happy holidays,
giopas |
|
Back to top |
|
|
|
|
|
|