Hosting subdomain on separate apache service

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
Hurreman
Forum Commoner
Posts: 61
Joined: Sat Apr 29, 2006 8:42 am

Hosting subdomain on separate apache service

Post 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?
miro_igov
Forum Contributor
Posts: 485
Joined: Fri Mar 31, 2006 5:06 am
Location: Bulgaria

Post 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.
User avatar
Hurreman
Forum Commoner
Posts: 61
Joined: Sat Apr 29, 2006 8:42 am

Post by Hurreman »

I have the same machine running the two apache services... :roll:
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

Hurreman wrote:I have the same machine running the two apache services... :roll:
The module you're looking for is reverse proxy...
User avatar
Hurreman
Forum Commoner
Posts: 61
Joined: Sat Apr 29, 2006 8:42 am

Post 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
Post Reply