Zope
  Home arrow Zope arrow Page 4 - Using Zope With Apache
Dev Shed Forums 
Administration  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Download TestComplete 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ZOPE

Using Zope With Apache
By: icarus, (c) Melonfire
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 30
    2002-05-14

    Table of Contents:
  • Using Zope With Apache
  • A Few Good Reasons
  • When Persistence Pays Off
  • The Writing On The Wall
  • The Fast And The Furious
  • Performing By Proxy
  • Zip Zap Zoom

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Using Zope With Apache - The Writing On The Wall
    (Page 4 of 7 )

    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.

    $ cd /tmp/sources $ tar -xzvf apache_1.3.20.tar.gz
    Next, configure Apache to activate the URL rewriting module.

    $ cd /tmp/sources/apache_1.3.20 $ ./configure --enable-module=rewrite
    Compile and install the package.

    $ make $ make install
    All done? Now add the following lines to Apache's "httpd.conf"configuration file.

    RewriteEngine on RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^/Zope(.*) /usr/local/apache/cgi-bin/Zope.cgi/$1 [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]
    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.

    More Zope Articles
    More By icarus, (c) Melonfire


     

       

    ZOPE ARTICLES

    - Creating Zope Products
    - Plone Content Types With Archetypes
    - Flat User Management in Zope
    - Creating Basic Zope Applications
    - Getting started with Zope for Linux and Sola...
    - ZPT Basics (part 4)
    - ZPT Basics (part 3)
    - ZPT Basics (part 2)
    - ZPT Basics (part 1)
    - Exception Handling In DTML
    - DTML Basics (part 4)
    - DTML Basics (part 3)
    - DTML Basics (part 2)
    - DTML Basics (part 1)
    - Using Zope With Apache

     
    Accelerating Trading Partner Performance
     
    Competing on Analytics
     
    Cost Effective Scaling with Virtualization and Coyote Point Systems
     
    Five Checkpoints to Implementing IP Telephony
     
    Hosted Email Security: Staying Ahead of New Threats
     




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway