[Zope] Fun with proxy, Apache and Zope :-/
Max M
maxm@mxm.dk
Fri, 15 Mar 2002 19:39:11 +0000
I have a site running with Apache.
<VirtualHost *>
ServerName www.mxm.dk
DocumentRoot C:/inetpub/wwwroot/www_mxm_dk
DirectoryIndex default.htm default.html index.html index.htm
RewriteEngine On
RewriteRule ^/kunder/ots/(.*) http://192.168.1.60:8080/$1 [P,L]
</VirtualHost>
Behind it I have another machine running with Zope.
If I do: http://www.mxm.dk/ I get my apache-served static file allright.
If I do http://www.mxm.dk/ots/ I also get the page served by Zope. But
any relative link on the page has the adress:
http://192.168.1.60:8080/somelink when I would expect them to have the
adress: http://www.mxm.dk/ots/somelink
Somehow Apache returns the ip adress of my private IP, and what I am
interrested in is the domain name.
It's probably something simple, but the docs at:
http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html
are somewhat unclear as to what I am doing wrong ...
please ...
regards Max M