fastcgi and site root
Before I start my tale of woe, I've been all over zope.org and the mailing list archives, but I may have missed something. Please borrow my clue-by-four to whack me over the head with if I did. :-) Solaris 8, Apache 1.3.12 (Oracle's, but it really doesn't matter), Zope 2.4.1 (binary Solaris distro), mod_fastcgi 2.2.10 compiled as a DSO. The following is included into my httpd.conf: ---- LoadModule fastcgi_module /oracle/local/Apache/libexec/mod_fastcgi.so AddModule mod_fastcgi.c RewriteEngine on RewriteRule ^/(.*) /Zope/$1 [PT] FastCgiIpcDir /tmp FastCgiExternalServer /oracle/product/8i/Apache/Apache/htdocs/Zope \ -socket zope.soc -pass-header Authorization <Location /Zope> Options ExecCGI SetHandler fastcgi-script </Location> ---- And, of course, z2.py gets the -F /tmp/zope.soc flag. Everything is swell with the exception of one teeny tiny problem. "Zope" keeps finding its way into the URI when I use absolute_url. This is a single server and I want Zope handling the site root. I have shuffled directives around, tried the duplicate RewriteRule that I saw on one howto... no effect. (Well, some of my shuffling broke it totally.) :-) I know of the empty folder acq workaround (empty folder called "Zope" into the root), but there must be a way to make this work without such hackery... -- Matt Behrens <matt.behrens@kohler.com> System Analyst, Baker Furniture
Matt Behrens wrote:
Before I start my tale of woe, I've been all over zope.org and the mailing list archives, but I may have missed something. Please borrow my clue-by-four to whack me over the head with if I did. :-)
*snatching the clue-by-four for self-flagellation* ---- LoadModule fastcgi_module /oracle/local/Apache/libexec/mod_fastcgi.so AddModule mod_fastcgi.c FastCgiIpcDir /tmp FastCgiExternalServer /oracle/local/Apache/Apache/fcgi/Zope.fcgi \ -socket zope.soc -pass-header Authorization DirectoryIndex index_html RewriteEngine on RewriteRule ^/(.*) /oracle/local/Apache/Apache/fcgi/Zope.fcgi/$1 [L] <Directory /oracle/local/Apache/Apache/fcgi> AddHandler fastcgi-script .fcgi AllowOverride none Options ExecCGI Order allow,deny Allow from all </Directory> ---- Why this makes a difference is entirely unclear to me, but it does. Oh, /oracle/local/Apache/Apache/fcgi must exist. Thanks to Roug's howto (<http://www.zope.org/Members/Roug/fastcgi_and_rootfolder>), which I thought didn't apply but did with a little coaxing :-) -- Matt Behrens <matt.behrens@kohler.com> System Analyst, Baker Furniture
On Fri, Sep 21, 2001 at 09:27:40AM -0400, Behrens Matt - Grand Rapids wrote:
RewriteEngine on RewriteRule ^/(.*) /Zope/$1 [PT]
FastCgiIpcDir /tmp FastCgiExternalServer /oracle/product/8i/Apache/Apache/htdocs/Zope \ -socket zope.soc -pass-header Authorization
<Location /Zope> Options ExecCGI SetHandler fastcgi-script </Location> ----
Everything is swell with the exception of one teeny tiny problem. "Zope" keeps finding its way into the URI when I use absolute_url. This is a single server and I want Zope handling the site root.
Use SiteAccess' VirtualHostMonster. I do it this way: <IfModule mod_fastcgi.c> ScriptAliasMatch ^/fcgi/zope.net.ru(.*)$ /usr/local/apache/htdocs/fcgi/VirtualHostBase/http/phd.russ.ru/zope.net.ru/VirtualHostRoot/_vh_fcgi/_vh_zope.net.ru$1 ScriptAliasMatch ^/fcgi(.*)$ /usr/local/apache/htdocs/fcgi$1 FastCgiExternalServer /usr/local/apache/htdocs/fcgi -socket /usr/local/Zope/var/fcgi.soc -pass-header Authorization <Location /fcgi> SetHandler fastcgi-script CharsetRecodeMultipartForms Off </Location> </IfModule> Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
participants (2)
-
Behrens Matt - Grand Rapids -
Oleg Broytmann