How do I set up a "gateway" for a specific subdomain?

Posted by Mason Wheeler on Pro Webmasters See other posts from Pro Webmasters or by Mason Wheeler
Published on 2012-03-27T23:12:07Z Indexed on 2012/03/27 23:44 UTC
Read the original article Hit count: 441

Filed under:
|

I'm looking at setting up a website that will run a few different apps. Most of them can be managed by an Apache server, but I've got one specific thing that will run on a custom HTTP server.

Looking around on apache.org, it looks like you can use mod_proxy to configure Apache to act as a "reverse proxy" and forward requests from a specific subdirectory to a new server with the ProxyPass directive. So if I wanted send anything from mysite.com/special on to the custom server, that's how I would do it.

But what if I want to set it up as a subdomain instead? The documentation doesn't seem to cover that. If, I wanted to make it forward anything from special.mysite.com to the new server, how would I set that up?

© Pro Webmasters or respective owner

Related posts about apache

Related posts about subdomain