Page 1 of 1

Hosting subdomain on separate apache service

Posted: Tue Jul 03, 2007 2:33 am
by Hurreman
For testing purposes, I've decided to setup a subdomain to use with new php versions and while working on experimental sites and projects.
I know I could just set a new Apache service to listen to a different port ( dev.mydomain.net:85 for example ), but I'm wondering if there's any way to redirect the subdomain to the alternate apache service without using a separate port. I've seen people using a front-end apache service to request data from servers that the user wouldn't have direct access to. I can't remember what the apache module was called, but it could've been mod_proxy_http and mod_security.

Any bright ideas?

Posted: Tue Jul 03, 2007 4:34 am
by miro_igov
How about A records?

dev IN A xxx.xxx.xxx.xxx

xxx.xxx.xxx.xxx is the IP of the machine which runs the other apache.

Posted: Tue Jul 03, 2007 4:50 am
by Hurreman
I have the same machine running the two apache services... :roll:

Posted: Tue Jul 03, 2007 4:52 am
by timvw
Hurreman wrote:I have the same machine running the two apache services... :roll:
The module you're looking for is reverse proxy...

Posted: Tue Jul 03, 2007 4:57 am
by Hurreman
Ah yes, cheers!

Google is king if you just know what to ask for. I will have look on these:

http://httpd.apache.org/docs/1.3/mod/mod_proxy.html

http://www.serverwatch.com/tutorials/ar ... hp/3290851