I'm having a problem getting to the "manage" page of the zope server. My configuration is as follows. <VirtualHost *> ServerName zope.xyz.com ServerAdmin webmaster@clave.info RewriteEngine On RewriteRule ^/(.*) http://localhost:8080/$1 [L,P] #ProxyPass / http://localhost:8080/ #ProxyPassReverse / http://localhost:8080/ ProxyVia on </VirtualHost> Everytime a request for zope.xyz.com comes in it get's the main page but any attempt to go to zope.xyz.com/manage/ results in errors from the client machine about not being able to connect to "localhost:8080" It's set up this way because this machine is only accessible through port 80 So the idea is just to have Apache act as a gateway to the zope site(s) running locally on 8080. Any help would be greatly appreciated.
You still need the zope instance to have an ip, localhost usually resolves to 127.0.0.1 So for example let us assume that somehow you manage to get a page downloaded to your browser and displayed. All links in the page will be http://localhost/<rest of the link> !!! But you wont have those URIs on your local machine now would you.. --- It's set up this way because this machine is only accessible through port 80 So the idea is just to have Apache act as a gateway to the zope site(s) running locally on 8080. --- To do this look up how to use VHM with apache and ZServer. I think the link is somewhere on: http://ww.zope.org/Members/regebro/ hth AM G. Clifford Williams wrote:
I'm having a problem getting to the "manage" page of the zope server. My configuration is as follows.
<VirtualHost *> ServerName zope.xyz.com ServerAdmin webmaster@clave.info RewriteEngine On RewriteRule ^/(.*) http://localhost:8080/$1 [L,P] #ProxyPass / http://localhost:8080/ #ProxyPassReverse / http://localhost:8080/ ProxyVia on </VirtualHost>
Everytime a request for zope.xyz.com comes in it get's the main page but any attempt to go to zope.xyz.com/manage/ results in errors from the client machine about not being able to connect to "localhost:8080"
It's set up this way because this machine is only accessible through port 80 So the idea is just to have Apache act as a gateway to the zope site(s) running locally on 8080.
Any help would be greatly appreciated.
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
-- ================================================================== Aseem Mohanty Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231 ================================================================== "I saw `cout' being shifted "Hello world" times to the left and stopped right there!!" -- Steve Gonedes ==================================================================
Thank you for your response. Is there not a way to get zope to use relative paths instead? I mean a way other than with the VHM? I'd like to manage several sites from one zope server. If the only way that I can get to each site to set them up is locally through lynx, links, or w3m then zope, as a solution, becomes less attractive. On Wednesday 26 February 2003 12:24 pm, AM wrote:
You still need the zope instance to have an ip, localhost usually resolves to 127.0.0.1
So for example let us assume that somehow you manage to get a page downloaded to your browser and displayed. All links in the page will be http://localhost/<rest of the link> !!!
But you wont have those URIs on your local machine now would you..
---
It's set up this way because this machine is only accessible through port 80 So the idea is just to have Apache act as a gateway to the zope site(s) running locally on 8080.
---
To do this look up how to use VHM with apache and ZServer.
I think the link is somewhere on:
http://ww.zope.org/Members/regebro/
hth AM
G. Clifford Williams wrote:
I'm having a problem getting to the "manage" page of the zope server. My configuration is as follows.
<VirtualHost *> ServerName zope.xyz.com ServerAdmin webmaster@clave.info RewriteEngine On RewriteRule ^/(.*) http://localhost:8080/$1 [L,P] #ProxyPass / http://localhost:8080/ #ProxyPassReverse / http://localhost:8080/ ProxyVia on </VirtualHost>
Everytime a request for zope.xyz.com comes in it get's the main page but any attempt to go to zope.xyz.com/manage/ results in errors from the client machine about not being able to connect to "localhost:8080"
It's set up this way because this machine is only accessible through port 80 So the idea is just to have Apache act as a gateway to the zope site(s) running locally on 8080.
Any help would be greatly appreciated.
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
First, you probably want to use ProxyPass instead of RewriteRule. To prepare, put a Virtual Host Monster (VHM) in the root of your Zope install. After that, go back to httpd.conf and use directives of the form: NameVirtualHost 1.2.3.4:80 # direct IP access for /manage and other special stuff <VirtualHost 1.2.3.4:80> ServerName 1.2.3.4 ServerAlias 1.2.3.4 ProxyPass / http://localhost:8080/VirtualHostBase/http/1.2.3.4:80/VirtualHostRoot/ ProxyPassReverse / http://localhost:8080/VirtualHostBase/http/1.2.3.4:80/VirtualHostRoot/ </VirtualHost> # vhost access through www.spam.com <VirtualHost www.spam.com:80> ServerName www.spam.com ServerAlias spam.com *.spam.com ProxyPass / http://localhost:8080/VirtualHostBase/http/www.spam.com:80/sites/spam_com/Vi... ProxyPassReverse / http://localhost:8080/VirtualHostBase/http/www.spam.com:80/sites/spam_com/Vi... </VirtualHost> Above assumes your IP is 1.2.3.4, your domain is spam.com and that the root folder for spam.com in your Zope is /sites/spam_com. HTH, Dylan At 09:59 AM 2/26/2003, G. Clifford Williams wrote:
I'm having a problem getting to the "manage" page of the zope server. My configuration is as follows.
<VirtualHost *> ServerName zope.xyz.com ServerAdmin webmaster@clave.info RewriteEngine On RewriteRule ^/(.*) http://localhost:8080/$1 [L,P] #ProxyPass / http://localhost:8080/ #ProxyPassReverse / http://localhost:8080/ ProxyVia on </VirtualHost>
Everytime a request for zope.xyz.com comes in it get's the main page but any attempt to go to zope.xyz.com/manage/ results in errors from the client machine about not being able to connect to "localhost:8080"
It's set up this way because this machine is only accessible through port 80 So the idea is just to have Apache act as a gateway to the zope site(s) running locally on 8080.
Any help would be greatly appreciated.
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
At 10:41 AM 2/26/2003, Dylan Reinhardt wrote:
<VirtualHost www.spam.com:80>
Small correction: that syntax will only work on more recent Apache builds. The more general form is: <VirtualHost 1.2.3.4:80> Which leaves ServerAlias to work out which vhost Apache is supposed to use. Dylan
Hey!!! that worked out just fine.. Thank you.. On Wednesday 26 February 2003 12:41 pm, Dylan Reinhardt wrote:
First, you probably want to use ProxyPass instead of RewriteRule.
To prepare, put a Virtual Host Monster (VHM) in the root of your Zope install.
After that, go back to httpd.conf and use directives of the form:
NameVirtualHost 1.2.3.4:80 # direct IP access for /manage and other special stuff <VirtualHost 1.2.3.4:80> ServerName 1.2.3.4 ServerAlias 1.2.3.4 ProxyPass / http://localhost:8080/VirtualHostBase/http/1.2.3.4:80/VirtualHostRoot/ ProxyPassReverse / http://localhost:8080/VirtualHostBase/http/1.2.3.4:80/VirtualHostRoot/ </VirtualHost>
# vhost access through www.spam.com <VirtualHost www.spam.com:80> ServerName www.spam.com ServerAlias spam.com *.spam.com ProxyPass / http://localhost:8080/VirtualHostBase/http/www.spam.com:80/sites/spam_com/V irtualHostRoot/ ProxyPassReverse / http://localhost:8080/VirtualHostBase/http/www.spam.com:80/sites/spam_com/V irtualHostRoot/ </VirtualHost>
Above assumes your IP is 1.2.3.4, your domain is spam.com and that the root folder for spam.com in your Zope is /sites/spam_com.
HTH,
Dylan
At 09:59 AM 2/26/2003, G. Clifford Williams wrote:
I'm having a problem getting to the "manage" page of the zope server. My configuration is as follows.
<VirtualHost *> ServerName zope.xyz.com ServerAdmin webmaster@clave.info RewriteEngine On RewriteRule ^/(.*) http://localhost:8080/$1 [L,P] #ProxyPass / http://localhost:8080/ #ProxyPassReverse / http://localhost:8080/ ProxyVia on </VirtualHost>
Everytime a request for zope.xyz.com comes in it get's the main page but any attempt to go to zope.xyz.com/manage/ results in errors from the client machine about not being able to connect to "localhost:8080"
It's set up this way because this machine is only accessible through port 80 So the idea is just to have Apache act as a gateway to the zope site(s) running locally on 8080.
Any help would be greatly appreciated.
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (3)
-
AM -
Dylan Reinhardt -
G. Clifford Williams