Sign up ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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, 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 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 to the new server, how would I set that up?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

If it's only HTTP traffic:

<VirtualHost *:80>
    ProxyRequests     Off
    ProxyPreserveHost On
  <Proxy *>
    Order deny,allow
    Allow from all
    ProxyPass /
    ProxyPassReverse /
  <Location />
    Allow from all

(This assumes your "special" server runs on 8081. Change that URL to wherever it runs.)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.