Apache mod_rewrite and multiple domains

Posted by andihahn on Stack Overflow See other posts from Stack Overflow or by andihahn
Published on 2010-04-05T19:08:34Z Indexed on 2010/04/05 19:13 UTC
Read the original article Hit count: 377

Filed under:
|
|

Hi, I'm trying to use mod_rewrite to map multiple domains to different servlets on one host. Example:

www.dom1.com -> 192.168.1.n/dom1 www.dom2.com -> 192.168.1.n/dom2 ...

I'm using the mod_rewrite and mod_proxy and directive but it seems that the reverse mapping via ProxyPassReverse doesn't work as I expected.

ProxyPassReverse /subdomain.domain.com http://192.168.1.n/subdomain

doesn't work. I've turned rewrite-logging on with

RewriteLog /var/log/rewrite.log

From the logs I'd say that rewriting works and the problem seems to be with reverse mapping. However I can't see any Reverse mapping entries. It seems that reverse mapping isn't logged or needs a different command to be activated. (Apache and the servlet container are on different machines but this should not matter I'd think ?)

© Stack Overflow or respective owner

Related posts about apache

Related posts about mod-rewrite