Apache mod_rewrite and multiple domains
- by andihahn
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 ?)