[Zope] mod_pcgi problems

Andy Dustman adustman@comstar.net
Tue, 20 Jul 1999 17:46:14 -0400 (EDT)


I finally got mod_pcgi compiled for Apache (actually hacked RedHat's
Rawhide 1.3.6 SRPM) and running, but I'm having some trouble, which seems
like a bug. My setup is like so:

PCGI_Mount /pcgi/
PCGI_SoftwareName Main
PCGI_ModulePath /home/adustman/Zope-2.0.0a4-src/lib/python/Main.py
PCGI_PIDPath /home/adustman/Zope-2.0.0a4-src/var/pcgi.pid
PCGI_PublisherPath /home/adustman/Zope-2.0.0a4-src/pcgi/pcgi_publisher.py
PCGI_SocketPath /home/adustman/Zope-2.0.0a4-src/var/pcgi.soc
PCGI_ErrorLog /home/adustman/Zope-2.0.0a4-src/var/pcgi.log

RewriteEngine on
RewriteLog /home/adustman/Zope-2.0.0a4-src/var/rewrite.log
RewriteLogLevel 2
RewriteCond %{REQUEST_FILENAME} ^/~adustman
RewriteRule ^/~adustman(.*) /home/adustman/public_html$1 [S=4]
RewriteCond %{REQUEST_FILENAME} ^/.*
RewriteRule ^/(.*) /pcgi/$1
RewriteCond %{HTTP:Authorization}  ^(.+)
RewriteRule ^(.+) $1 [ENV=HTTP_CGI_AUTHORIZATION:%1]

If it's not obvious, I want / on the site to go to Zope. Here's the
problem. If I request /, I get a 404. The error is: File does not exist:
/home/httpd/html/pcgi/ OTOH, if I request /pcgi/, this works in that I get
Zope.

In effect, if mod_rewrite rewrites the URL to /pcgi/, it doesn't find the
PCGI mount, but if the URL has /pcgi already, it bypasses mod_rewrite. I
don't know if this is a bug, or feature, and if either, of either Apache,
mod_rewrite, or mod_pcgi.

Anyone more clueful?

-- 
andy dustman  | programmer/analyst |  comstar communications corporation
telephone: 770.485.6025 / 706.549.7689 | icq: 32922760 | pgp: 0xc72f3f1d