apache proxy for different domains

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux