I'm trying to run zope behind apache using fastcgi, but I'm having a problem setting up the directive properly. Zope 2.7 w/Plone 2, Apache 2, FastCGI 2.4.2, Macintosh OS X Server Apache error log shows Connection refused: FastCGI: failed to connect to server "/Library/WebServer/Documents/zope": connect() failed FastCGI: incomplete headers (0 bytes) received from server "/Library/WebServer/Documents/zope" Access log shows "GET /zope HTTP/1.1" 302 299 My DocumentRoot in httpd.conf is /tmp but OS X Server uses vhosting for all sites, and within the vhost, the DocumentRoot is /Library/WebServer/Documents. Here's how I have the config files set up. In httpd.conf, right after the ServerName configuration: ## FastCgiExternalServer /Library/WebServer/Documents/zope \ -host localhost:8889 \ -pass-header Authorization <Location /zope> SetHandler fastcgi-script </Location> ## As suggested in the fastcgi documentation, /zope is a file that does not exist. In zope.conf, I uncommented these lines: ## <fast-cgi> address localhost:8889 </fast-cgi> ## __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail
Of course, I meant to end this email by saying I would greatly appreciate any advice you have to offer. S. --- Sophia Grimm <sophiagrimm@yahoo.com> wrote:
I'm trying to run zope behind apache using fastcgi, but I'm having a problem setting up the directive properly.
Zope 2.7 w/Plone 2, Apache 2, FastCGI 2.4.2, Macintosh OS X Server
Apache error log shows Connection refused: FastCGI: failed to connect to server "/Library/WebServer/Documents/zope": connect() failed FastCGI: incomplete headers (0 bytes) received from server "/Library/WebServer/Documents/zope"
Access log shows "GET /zope HTTP/1.1" 302 299
My DocumentRoot in httpd.conf is /tmp but OS X Server uses vhosting for all sites, and within the vhost, the DocumentRoot is /Library/WebServer/Documents. Here's how I have the config files set up.
In httpd.conf, right after the ServerName configuration: ## FastCgiExternalServer /Library/WebServer/Documents/zope \ -host localhost:8889 \ -pass-header Authorization
<Location /zope> SetHandler fastcgi-script </Location> ##
As suggested in the fastcgi documentation, /zope is a file that does not exist.
In zope.conf, I uncommented these lines: ## <fast-cgi> address localhost:8889 </fast-cgi> ##
__________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail _______________________________________________ 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 )
__________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail
On 19 Aug 2004, at 14:03, Sophia Grimm wrote:
Of course, I meant to end this email by saying I would greatly appreciate any advice you have to offer.
Ah. Advice I can offer. Don't use FastCGI, use Apache's proxypass to redirect the appropriate traffic to Zope on a different port. See <http://zope.org/Members/anser/apache_zserver>. HTH Simon Forster _____________________________________________________ LDML Ltd, 62 Pall Mall, London, SW1Y 5HZ, UK Tel: +44 (0)70 9230 5244 Fax: +44 (0)70 9230 5247 _____________________________________________________
Hi, Simon. Actually, that is what I was originally using (and would rather be using now), but I'm moving to a remote authorization scheme with ssl that requires fastcgi. Thanks anyway! --- Simon Forster <simon-lists@ldml.com> wrote:
On 19 Aug 2004, at 14:03, Sophia Grimm wrote:
Of course, I meant to end this email by saying I would greatly appreciate any advice you have to offer.
Ah. Advice I can offer. Don't use FastCGI, use Apache's proxypass to redirect the appropriate traffic to Zope on a different port. See <http://zope.org/Members/anser/apache_zserver>.
HTH
Simon Forster
_____________________________________________________
LDML Ltd, 62 Pall Mall, London, SW1Y 5HZ, UK Tel: +44 (0)70 9230 5244 Fax: +44 (0)70 9230 5247
_____________________________________________________
__________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail
On Thu, 19 Aug 2004 14:44:56 +0100, Simon Forster <simon-lists@ldml.com> wrote:
Ah. Advice I can offer. Don't use FastCGI, use Apache's proxypass to redirect the appropriate traffic to Zope on a different port. See <http://zope.org/Members/anser/apache_zserver>.
Does mod_proxy &c still lose information? That advantage of fastcgi is that it "appears" that the Zope process is running on the front-end apache directly. This eases deployment between Apache-fronted and non-Apache- fronted setups.
On Thu, 19 Aug 2004 14:44:56 +0100, Simon Forster <simon-lists@ldml.com> wrote:
Ah. Advice I can offer. Don't use FastCGI, use Apache's proxypass to redirect the appropriate traffic to Zope on a different port. See <http://zope.org/Members/anser/apache_zserver>.
Does mod_proxy &c still lose information? That advantage of fastcgi is that it "appears" that the Zope process is running on the front-end apache directly. This eases deployment between Apache-fronted and non-Apache- fronted setups.
Anthony Baxter wrote:
Does mod_proxy &c still lose information?
What information was it loosing? I've never had any problems... Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
participants (4)
-
Anthony Baxter -
Chris Withers -
Simon Forster -
Sophia Grimm