problems accessing the zope manage page via apache
I got apache and zope on one server, I started zope to just listen on localhost. I defined some virtualhosts in the apache.conf, first I tried it with ProxyPass and after that with RewriteRules, both don't work. I can access the first screen, but if I try to access the manage page using the link on the first page, I get the error message, that the connection is refused on localhost:8080. On the first page, there are is also logo on left site missing. Here is what I configured in the apache: LoadModule rewrite_module libexec/apache/mod_rewrite.so LoadModule proxy_module libexec/apache/libproxy.so AddModule mod_rewrite.c AddModule mod_proxy.c <VirtualHost domain.tld> ServerName domain.tld ServerAdmin webmaster@domain.tld ServerSignature EMail CacheRoot /var/log/apache/domain.tld/cache RewriteEngine On RewriteRule ^/(.*) http://localhost:8080/$1 [L,P] ErrorLog /var/log/apache/domain.tld/error_domain.tld_log TransferLog /var/log/apache/domain.tld/access_transfer_domain.tld_log ProxyVia on </VirtualHost> I already read some docs on www.zope.org (eg. http://www.zope.org/Members/regebro/Zope_and_Apache) but it doesn't work for some reason I don't know. Can someone help? I also need to access this via ssl. Thanks in advance, Manule -- Democracy consists of choosing your dictators, after they've told you what it is you want to hear. -Alan Coren
Manuel Hendel writes:
I got apache and zope on one server, I started zope to just listen on localhost. I defined some virtualhosts in the apache.conf, first I tried it with ProxyPass and after that with RewriteRules, both don't work. I can access the first screen, but if I try to access the manage page using the link on the first page, I get the error message, that the connection is refused on localhost:8080. On the first page, there are is also logo on left site missing.
You forgot to tell Zope that it is accessed from somewhere behind apache; thus Zope thinks it is accessed from localhost:8080, and starts all absolute Url's with "http://localhost:8080" You should install a "SiteAccess" object for fixing this. http://www.zope.org/Members/4am/SiteAccess [snip apache config not beeing the problem]
I already read some docs on www.zope.org (eg. http://www.zope.org/Members/regebro/Zope_and_Apache) but it doesn't work for some reason I don't know.
I prefer: http://www.zope.org/Members/anser/apache_zserver ;)
Can someone help? I also need to access this via ssl.
I guess You want https ? So far I never tried that, but some other people did it with VirtualHostMonster: http://www.infrae.com/products/silva/docs/SysAdmin/ApacheNotes Cheers, Clemens
I've been doing this exact thing today, and got it working :) I've set up zope behind apache with mod_ssl and mod_fastcgi, this article tells you what to do: http://www.devshed.com/Server_Side/Zope/ZopeWithApache/page5.html Clemens Klein-Robbenhaar wrote:
Manuel Hendel writes:
I got apache and zope on one server, I started zope to just listen on localhost. I defined some virtualhosts in the apache.conf, first I tried it with ProxyPass and after that with RewriteRules, both don't work. I can access the first screen, but if I try to access the manage page using the link on the first page, I get the error message, that the connection is refused on localhost:8080. On the first page, there are is also logo on left site missing.
You forgot to tell Zope that it is accessed from somewhere behind apache; thus Zope thinks it is accessed from localhost:8080, and starts all absolute Url's with "http://localhost:8080" You should install a "SiteAccess" object for fixing this. http://www.zope.org/Members/4am/SiteAccess
[snip apache config not beeing the problem]
I already read some docs on www.zope.org (eg. http://www.zope.org/Members/regebro/Zope_and_Apache) but it doesn't work for some reason I don't know.
I prefer: http://www.zope.org/Members/anser/apache_zserver ;)
Can someone help? I also need to access this via ssl.
I guess You want https ? So far I never tried that, but some other people did it with VirtualHostMonster:
http://www.infrae.com/products/silva/docs/SysAdmin/ApacheNotes
Cheers, Clemens
_______________________________________________ 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 )
Thanks a lot, now I'll check these things. Manuel On Thu, Sep 05, 2002 at 05:11:49PM +0100, Ben Avery wrote:
I've been doing this exact thing today, and got it working :)
I've set up zope behind apache with mod_ssl and mod_fastcgi, this article tells you what to do: http://www.devshed.com/Server_Side/Zope/ZopeWithApache/page5.html
Clemens Klein-Robbenhaar wrote:
Manuel Hendel writes:
I got apache and zope on one server, I started zope to just listen on localhost. I defined some virtualhosts in the apache.conf, first I tried it with ProxyPass and after that with RewriteRules, both don't work. I can access the first screen, but if I try to access the manage page using the link on the first page, I get the error message, that the connection is refused on localhost:8080. On the first page, there are is also logo on left site missing.
You forgot to tell Zope that it is accessed from somewhere behind apache; thus Zope thinks it is accessed from localhost:8080, and starts all absolute Url's with "http://localhost:8080" You should install a "SiteAccess" object for fixing this. http://www.zope.org/Members/4am/SiteAccess
[snip apache config not beeing the problem]
I already read some docs on www.zope.org (eg. http://www.zope.org/Members/regebro/Zope_and_Apache) but it doesn't work for some reason I don't know.
I prefer: http://www.zope.org/Members/anser/apache_zserver ;)
Can someone help? I also need to access this via ssl.
I guess You want https ? So far I never tried that, but some other people did it with VirtualHostMonster:
http://www.infrae.com/products/silva/docs/SysAdmin/ApacheNotes
Cheers, Clemens
_______________________________________________ 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 )
-- We have just enough religion to make us hate, but not enough to make us love on another. -Jonathan Swift
Manuel Hendel writes:
I got apache and zope on one server, I started zope to just listen on localhost. I defined some virtualhosts in the apache.conf, first I tried it with ProxyPass and after that with RewriteRules, both don't work. I can access the first screen, but if I try to access the manage page using the link on the first page, I get the error message, that the connection is refused on localhost:8080. It your Zope still running (and listening) on "localhost:8080"?
"connection refused" usually means: no server is listening there.
On the first page, there are is also logo on left site missing. Looks look a wrong base url. Look at the HTML source (of your page, in your browser) and verify that the "<base>" tag in the HTML "<head>" element is correct. If it is not, then either you have not installed the VHM (virtual host monster) or your rewrite rules are not yet correct.
Plenty of HowTos about this issue! Read (some of) them! Dieter
participants (5)
-
Ben Avery -
Clemens Klein-Robbenhaar -
Dieter Maurer -
Manuel Hendel -
Manuel Hendel