Fun with proxy, Apache and Zope :-/
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
Max M wrote:
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
Apparently it is Zope that returns the private ip adress. I have it working on an IIS machine at another adress just fine using the same method. Do I really have to use a VirtualHostMonster to get Zope to return the right domain? regards Max M
Hello Max, Either you'll need a Virtual Host Monster or a Site Root. I like Virtual Host Monster because it is more flexible, and more difficult to make weird things. []'s Em Sex 15 Mar 2002 16:58, Max M escreveu:
Max M wrote:
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
Apparently it is Zope that returns the private ip adress.
I have it working on an IIS machine at another adress just fine using the same method.
Do I really have to use a VirtualHostMonster to get Zope to return the right domain?
regards Max M
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
-- Sidnei da Silva X3ng Web Technology sidnei@x3ng.com.br
Sidnei da Silva wrote:
Hello Max,
Either you'll need a Virtual Host Monster or a Site Root. I like Virtual Host Monster because it is more flexible, and more difficult to make weird things.
A Virtual Host Monster did the trick. RewriteRule ^/kunder/ots/(.*) http://192.168.1.60:8080/VirtualHostBase/http/www.mxm.dk:80/VirtualHostRoot/... [P]
participants (2)
-
Max M -
Sidnei da Silva