logo

Personal tools
Vasudeva Documentation How-To Running Zope under Zeus
Document Actions

Running Zope under Zeus

This note describes the configuration of Zeus and Zope that allows access to the ZMI without Medusa.

We want to create easy access to the ZMI at http://zopedev.vasudevaservice.com. This requires Zope to be available on port 80.
Since Zeus controls port 80 on our server, it is necessary to configure Zeus to give access to the ZMI. This how-to describes the steps taken to do this under Zope 2.7.0 and Zeus 4.2 on Linux.
  1. Establish an IP address for zopedev.vasudevaservice.com.
  2. Configure zope.conf to listen on fcgi on port 7777. Edit the fast-cgi element to read as follows.
    <fast-cgi>
      address 7777
    </fast-cgi>
    
  3. Create a virtual server named zopedev.vasudevaservice.com Config Summary:
      Comment         development Zope instance 
      Host name       zopedev.vasudevaservice.com 
      Port            80 
      Document root   /home/vasudevaservice.com/public_html 
      Webmaster email mail@vasudevaservice.com 
      DNS lookup      yes 
      Error log file  /home/vasudevaservice.com/devlogs/errors.txt 
      Aliases
      Bind address
      Bind port
      SSL enabled     no
    
    FastCGI Remote Responder:
      Requests for /
      are mapped to localhost:7777
    
    htaccess Support:
      Enabled
      Global access file: /home/vasudevaservice.com/devlogs/global.htaccess
    
    Access Users and Access Groups:
      Users and groups are stored in an internal database. 
      Create a user named admin (name doesn't matter);
      specify no password.
    
    Restricting Access:
      Enabled
      Top Rule: Enabled; Deny "/" to GET|PUT|POST for Any Valid User
      Bottom Rule: Enabled; Allow "/" to GET|PUT|POST Only These 
      Users: admin 
      (REALM=ZEUS_RULE, for debugging...)
    
    Commit these changes to the virtual server.
  4. Create logging area
    • Create /home/vasudevaservice.com/devlogs/
    • Create /home/vasudevaservice.com/devlogs/global.htaccess with content:
      <Location />
      PassEnvAuthorization on
      </Location>
      
    • Make sure the directory and file above have full permissions for the owner
      of /home/vasudevaservice.com/.
  5. Start the virtual server
  6. Start Zope
  7. Browse to http://zopedev.vasudevaservice.com/manage
    If all is well, you will be prompted for the username and password for "Zope"
    at zopedev.vasudevaservice.com Enter these as usual, and you enter the ZMI.
  8. Finally, create a custom index_html login page and a Cookie Crumbler. Now you can browse to http://zopedev.vasudevaservice.com when logging in.
page created by admin last modified 2004-07-30 11:51