Now, while this is fairly simple, there's one very important caveat withthis method. You won't be able to access the Zope management interfacevia PCGI, because Apache has trouble passing authentication headers overthe CGI "bridge" that's been constructed between Zope and itself. Luckily, there does exist a solution for this (although it comes with acaveat of its own, discussed on the next page). This solution involvesusing Apache's URL rewriting engine to artificially pass theauthorization credentials to Zope over CGI. In order to do this, first make sure that your Apache build includessupport for URL rewriting (you can do this by looking for"mod_rewrite.c" in the output of "httpd -l"). If it does, great - skipthe configure-build-install process below and jump straight intoconfiguring the server. If not, you'll need to recompile Apache withsupport for URL rewriting. First, untar the Apache distribution to a directory on your system. Next, configure Apache to activate the URL rewriting module. Compile and install the package. All done? Now add the following lines to Apache's "httpd.conf"configuration file. This tells the server to use its URL rewriting engine to automaticallypass all URLs containing /Zope to the "Zope.cgi" script. Simultaneously,it sets the environment variable HTTP_CGI_AUTHORIZATION to reflect thecurrent authentication status, thereby (hopefully) solving theauthentication problem. Restart the server, and try accessing the URL again. This time, Apacheshould successfully pass your authentication credentials to Zope, andyou should be able to access the Zope management interface. If it didn't work, you're not toast yet - flip to the next page for analternative solution.
blog comments powered by Disqus |