httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sai A <>
Subject [users@httpd] Complex URL Mapping
Date Tue, 02 Nov 2010 17:45:52 GMT

I am trying to figure out how to achieve the following with Apache HTTP
Server 2.0 which routes all request to a cluster of application servers.

I have a bunch of applications running on various subdomains on a site.
Broadly there are 3 categories of sites running on a domain name

These are more or less static sites.

2), etc.
These are the homepages of the clients' sites.

This is the admin site where all the clients can login to see client
specific details that relate to the company, update their profiles etc. So
client1 uses the URL for his admin

Now *some* of the clients want to move to their own domain names. They want
to be able to access their homepage ( at
And their admin dashboard at However the first
category of sites above still needs to remain operational and category 2 and
3 would need to be operational as well (for those who don't opt for their
own domain names)

To summarise:
2) --> (for some clients alone)
3) --> (for
the same clients in 2)

I have been reading the documentation to figure out the best way to do this.
Initially it looked like I could achieve it using a simple configuration of
ProxyPass and ProxyPassReverse like the following (just the small excerpt)
for each of the clients who opts for his own domain name.



ProxyPass /
ProxyPass /dashboard/
ProxyPassReverse / 
ProxyPassReverse /dashboard/

<Location /dashboard/client1/>
ProxyHTMLURLMap /       /dashboard/


My first question is would the above approach work for the above scenario ( working as always and the old and new client specific
URLs working as intended.)

There would be about 1000 clients for the company (or more, I am not sure).
I was wondering if there would be a simpler way to do it, without adding
virtual hosts for every client.

I was wondering if mod_rewrite would be the only approach if I don't want
virtual hosts for each client. I am not sure if I'd be allowed to create
virtual hosts, so would want to proceed to do that if that is the only way.
If there is some way that is easier/better than virtual hosts/mod_rewrite,
that would be great. Please do let me know your suggestions.

Any help is greatly appreciated. Thanks in advance.

View raw message