httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lars Bachmann <lars.bachm...@s2002.tu-chemnitz.de>
Subject [users@httpd] apache proxy for different domains
Date Tue, 07 Apr 2009 13:30:12 GMT
hi,

i want to setup the apache as a proxy. The proxy can be accessed by  
different top level domains. (www.mysite.de, www.mysite.com,  
www.mysite.fr, ...)

now i want apache to work as an reverse proxy and delegate the http  
requests to the "real" webserver. So i followed the documentation and  
used the following commands:

ProxyRequests Off
ProxyPass / http://www.myrealsite.de/
ProxyPassReverse / http://www.myrealsite.de/

It is working fine but I don't know how to setup the redirect for the  
different top level domains.
What I want to realize is that a call of www.mysite.com will redirect  
to www.myrealsite.com, www.mysite.de to www.myrealsite.de and so on ...

Im not sure how to do this. I played around with the rewrite engine  
but couldn't get it work.

I would be thankful for any help.

Regards,

Lars


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message