Zope, fastcgi, Apache 2.0 - need a dummy file!?
Hi all, I am serving Zope behind Apache 2.0 using fastcgi. I find a need a dummy file with the same name as the Zope root otherwise fastcgi process manager fails with ...cannot stat /www/htdocs/Zope... Is this a "bug"? Without a dummy /www/htdocs/Zope file my content serving fails. I am using Zope 2.5.1, Apache 2.0.40, mod_fastcgi 2002-08 Snapshot (with AP2 support)... Following all the howtos: In Apache 2.0 httpd.conf LoadModule mod_fastcgi.c FastCgiExternalServer /www/htdocs/Zope -host localhost:1234 -pass-header Authorization <Location /Zope> SetHandler fastcgi-script </Location> Thanks! Richard Chan
Yes, this is how fastcgi works. You may want to try using rewrite instead of fastcgi. I don't know what the verdict is on speed of one verse the other. I've heard arguments both ways, but no real numbers... If anyone can point out numbers I'd love to see them. On Sun, 2002-09-15 at 16:35, Richard Chan wrote:
Hi all,
I am serving Zope behind Apache 2.0 using fastcgi. I find a need a dummy file with the same name as the Zope root otherwise fastcgi process manager fails with ...cannot stat /www/htdocs/Zope... Is this a "bug"? Without a dummy /www/htdocs/Zope file my content serving fails.
I am using Zope 2.5.1, Apache 2.0.40, mod_fastcgi 2002-08 Snapshot (with AP2 support)...
Following all the howtos:
In Apache 2.0 httpd.conf
LoadModule mod_fastcgi.c FastCgiExternalServer /www/htdocs/Zope -host localhost:1234 -pass-header Authorization
<Location /Zope> SetHandler fastcgi-script </Location>
Thanks!
Richard Chan
_______________________________________________ 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 ) -- --EAM
Interlix - President/Owner Web Hosting - PC Service & Support Custom Programming - Network Service & Support http://www.interlix.com
I am serving Zope behind Apache 2.0 using fastcgi. I find a need a dummy file with the same name as the Zope root otherwise fastcgi process manager fails with ...cannot stat /www/htdocs/Zope... Is this a "bug"? Without a dummy /www/htdocs/Zope file my content serving fails.
You shouldn't need a dummy file. What *exactly* is the error mesage you see? --rob
I stand corrected. The file doesn't have to exist. http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html#FastCgiExternalServ... Sorry about that I could have sworn it did..... On Wed, 2002-09-18 at 18:55, Rob Saccoccio wrote:
I am serving Zope behind Apache 2.0 using fastcgi. I find a need a dummy file with the same name as the Zope root otherwise fastcgi process manager fails with ...cannot stat /www/htdocs/Zope... Is this a "bug"? Without a dummy /www/htdocs/Zope file my content serving fails.
You shouldn't need a dummy file. What *exactly* is the error mesage you see?
--rob
_______________________________________________ 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 ) -- --EAM
Interlix - President/Owner Web Hosting - PC Service & Support Custom Programming - Network Service & Support http://www.interlix.com
Edward Muller wrote:
I stand corrected. The file doesn't have to exist.
http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html#FastCgiExternalServ...
Sorry about that I could have sworn it did.....
On Wed, 2002-09-18 at 18:55, Rob Saccoccio wrote:
I am serving Zope behind Apache 2.0 using fastcgi. I find a need a dummy file with the same name as the Zope root otherwise fastcgi process manager fails with ...cannot stat /www/htdocs/Zope... Is this a "bug"? Without a dummy /www/htdocs/Zope file my content serving fails.
You shouldn't need a dummy file. What *exactly* is the error mesage you see?
--rob
Yeah, the docs say that, but I had this happen too. I believe I have fastcgi from mod_fastcgi-SNAP-0208192319.tar.gz, apache 2.0.40 on FreeBSD 4.6. FastCGI related lines from my httpd.conf look like this: ------------------ FastCgiExternalServer /usr/local/www/data/zope -host 127.0.0.1:8082 -pass-header Authorization RewriteRule ^/(.*) /zope/VirtualHostBase/http/foobar.org:80/VirtualHostRoot/$1 [PT] <Location /zope> SetHandler fastcgi-script Options ExecCGI </Location> ------------------- Without a dummy file my httpd-error.log file shows: ------ [Fri Sep 20 10:02:17 2002] [error] [client aaa.bbb.xxx.yyy] (2)No such file or directory: FastCGI: stat() of "/usr/local/www/data/zope" failed ------- (IP address changed to aa.bbb...) With a dummy file, everything works fine. Barry
Any reason why you are using FastCGI instead of Rewrite with a [P] on the end? On Fri, 2002-09-20 at 10:12, Barry Pederson wrote:
Edward Muller wrote:
I stand corrected. The file doesn't have to exist.
http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html#FastCgiExternalServ...
Sorry about that I could have sworn it did.....
On Wed, 2002-09-18 at 18:55, Rob Saccoccio wrote:
I am serving Zope behind Apache 2.0 using fastcgi. I find a need a dummy file with the same name as the Zope root otherwise fastcgi process manager fails with ...cannot stat /www/htdocs/Zope... Is this a "bug"? Without a dummy /www/htdocs/Zope file my content serving fails.
You shouldn't need a dummy file. What *exactly* is the error mesage you see?
--rob
Yeah, the docs say that, but I had this happen too. I believe I have fastcgi from mod_fastcgi-SNAP-0208192319.tar.gz, apache 2.0.40 on FreeBSD 4.6. FastCGI related lines from my httpd.conf look like this:
------------------ FastCgiExternalServer /usr/local/www/data/zope -host 127.0.0.1:8082 -pass-header Authorization
RewriteRule ^/(.*) /zope/VirtualHostBase/http/foobar.org:80/VirtualHostRoot/$1 [PT]
<Location /zope> SetHandler fastcgi-script Options ExecCGI </Location> -------------------
Without a dummy file my httpd-error.log file shows:
------ [Fri Sep 20 10:02:17 2002] [error] [client aaa.bbb.xxx.yyy] (2)No such file or directory: FastCGI: stat() of "/usr/local/www/data/zope" failed ------- (IP address changed to aa.bbb...)
With a dummy file, everything works fine.
Barry -- --EAM
Interlix - President/Owner Web Hosting - PC Service & Support Custom Programming - Network Service & Support http://www.interlix.com
Edward Muller wrote:
Any reason why you are using FastCGI instead of Rewrite with a [P] on the end?
Not really - was mainly trying it just experimenting purposes and did see the same problem with FastCGI. It is nice though that the REMOTE_ADDR variable is correct, when using FastCGI instead of ProxyPass - although I believe ProxyPass can do that X-Forwarded-For: thing. Barry
Barry Pederson writes:
Edward Muller wrote:
Any reason why you are using FastCGI instead of Rewrite with a [P] on the end?
Not really - was mainly trying it just experimenting purposes and did see the same problem with FastCGI.
It is nice though that the REMOTE_ADDR variable is correct, when using FastCGI instead of ProxyPass - although I believe ProxyPass can do that X-Forwarded-For: thing. When you use an Apache Rewrite rule, you can use the little "REMOTE_URL" patch you find on my Zope page
participants (5)
-
Barry Pederson -
Dieter Maurer -
Edward Muller -
Richard Chan -
Rob Saccoccio