Question about Apache and Mod_Proxy

Giganews Newsgroups
Subject: Question about Apache and Mod_Proxy
Posted by:  andrew (andrew.ggrou…@gmail.com)
Date: Fri, 10 Jul 2009

I'm rather new to Apache / Mod_Proxy, so I though I would share my
configuration and see if anyone had any ideas for improvement, plus I
had a question.

My challenge was to take a domain name and split it across three
servers, one for static content, one for a blog and one for a .Net
application.  So that www.domain.com went to static, www.domain.com/blog
went to the blog server, and www.domain.com/app went to a Windows
server.

For SEO purposes subdomains were ruled out.

All of the Linux servers are: Ubuntu 8.04.3 LTS

Everything works fine.  I added proxy statements to the /etc/apache2/
sites-available/default.

The "proxy" server is *only* serving proxy requests.  No websites or
apps.

My question is this:  looking at the configuration, it seems that the
proxy server will work for one domain... how do I set it up to run
proxy rules based on a host header?

Now that I typed all of this out, I think I know what to research, but
I'll post the question anyways.  I'll reply back if I figure it
out... :)

Thanks

Replies