logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Reverse proxy for entire domain
Author
giopas



Joined: 18 Nov 2015
Posts: 29

PostPosted: Tue 22 Dec '15 19:34    Post subject: Reverse proxy for entire domain Reply with quote

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

PostPosted: Sat 26 Dec '15 10:39    Post subject: Reply with quote

You have to create 3 vhosts.
Back to top
giopas



Joined: 18 Nov 2015
Posts: 29

PostPosted: Sat 26 Dec '15 19:04    Post subject: Reply with quote

Ok, thanks JB!

Happy holidays,

giopas
Back to top


Reply to topic   Topic: Reverse proxy for entire domain View previous topic :: View next topic
Post new topic   Forum Index -> Apache