[Zope] new user, having problems with apache

jacob walcik jwalcik@notwithstanding.org
Thu, 3 May 2001 09:52:04 -0500 (CDT)


i'm trying to setup zope (2.3.1 built on redhat 7.0) and apache (the two
are communicating via fastcgi) in a manner in which it can handle multiple
virtual hosts.  zope itself is working just fine via ZServer on port 8080,
and here's what i have in my apache config:

for fastcgi:
LoadModule fastcgi_module     libexec/mod_fastcgi.so

FastCgiExternalServer /usr/local/apache/htdocs/zope \
                      -host localhost:8889 \
                      -pass-header Authorization

for the virtual host:
<VirtualHost 216.171.4.49>
    ServerAdmin jwalcik@iensemble.com
    DocumentRoot /usr/local/apache/htdocs
    ServerName milkman.iensemble.com
    ErrorLog logs/milkman.iensemble.com-error_log
    CustomLog logs/milkman.iensemble.com-access_log common
    RewriteEngine on
    RewriteCond %(HTTP:Authorization) ^(.*)
    RewriteRule ^/images/(.*) /usr/local/apache/htdocs/images/$1 [L]
    <Location />
        Options ExecCGI
        SetHandler fastcgi-script
    </Location>
</VirtualHost>

like i said, my ultimate goal here is to be able to serve multiple virtual
hosts from a single machine.  i'd like everything past / at the url
milkman.iensemble.com to be interpretted by zope, except for /images which
will let apache hand out static images w/o having to bother with zope.  

now for the problem.  with the configuration above, when i go to
http://milkman.iensemble.com/ i get a "403 Forbidden" message from apache.
if i go to http://milkman.iensemble.com/zope, i get the default zope index
page.  if i had the "Location" directive in the virtualhost set to /zope,
i'd understand why this was happening, but since that's not the case, i'm
not clear on what i've done wrong here. 

also, the rewrite rule doesn't appear to be working, but i can work on
that another day...

--
jacob walcik
jwalcik@notwithstanding.org