[Zope] Linking Zope to Apache 1.3

neil neil_matthews at excite.com
Mon Jan 31 11:18:06 EST 2005


I have tried simply adding the code to my httpd.conf file but unfortunatly it hasn't worked. I have included my httpd.conf file below. I am sure mod_proxy is installed and working fine. It is called although not listed below. I took it out in this email to make it appear better. 

My main question is reguarding the 2 lines 
ProxyPass / http://localhost:8080/VirtualHostBase/http/sample.com:80/website/VirtualHostRoot/
ProxyPassReverse / http://localhost:8080/VirtualHostBase/http/sample.com:80/mysite/VirtualHostRoot/

what value does "mysite" represent? Is it where my folder is located on the file system or simply the name of mysite?



http.conf
----------------
### Main Configuration Section

        #Removed by Apache 2.0 ---   ServerType standalone
ServerRoot /etc/httpd/2.0
#ServerName localhost
#LockFile /etc/httpd/httpd.lock
PidFile /var/run/httpd.pid
        #Removed by Apache 2.0 ---   ScoreBoardFile /etc/httpd/httpd.scoreboard
ErrorLog logs/error_log
LogLevel warn
        #Removed by Apache 2.0 ---   ResourceConfig /dev/null
        #Removed by Apache 2.0 ---   AccessConfig /dev/null
DocumentRoot /var/www/html

#Modules names
I have taken out all of the modules loaded to make it appear shorter


### Global Configuration

Include /etc/httpd/conf.d/*.conf
Include conf/commonhttpd.conf

### IP Address/Port and Proxied configuration section

#BindAddress *
<IfDefine APACHEPROXIED>
        #Removed by Apache 2.0 ---   Port 8080
    Listen 8080
</IfDefine>
<IfDefine !APACHEPROXIED>
        #Removed by Apache 2.0 ---   Port 80
    Listen 80
</IfDefine>

<IfDefine PERLPROXIED>
    RewriteEngine on
    RewriteRule ^proxy:.*  -  [F]
    RewriteRule ^(.*\/perl\/.*)$  http://%{HTTP_HOST}:8200$1 [P]
    RewriteRule ^(.*\/cgi-perl\/.*)$  http://%{HTTP_HOST}:8200$1 [P]
</IfDefine>

### Virtual Hosts 


<VirtualHost *>
ServerName sample.com
ServerAlias www.sample.com
ServerAdmin webmaster at sample.com
ProxyPass / http://localhost:8080/VirtualHostBase/http/sample.com:80/website/VirtualHostRoot/
ProxyPassReverse / http://localhost:8080/VirtualHostBase/http/sample.com:80/mysite/VirtualHostRoot/
</VirtualHost>

Timeout 300

KeepAlive On

MaxKeepAliveRequests 100

KeepAliveTimeout 15

MinSpareServers 4
MaxSpareServers 10


StartServers 4

MaxClients 150

MaxRequestsPerChild 500


------------------





 --- On Mon 01/31, Andreas Jung < lists at andreas-jung.com > wrote:
From: Andreas Jung [mailto: lists at andreas-jung.com]
To: neil_matthews at excite.com, zope at zope.org
Date: Mon, 31 Jan 2005 09:17:32 +0100
Subject: Re: [Zope] Linking Zope to Apache 1.3

<br><br>--On Montag, 31. Januar 2005 3:03 Uhr -0500 neil <neil_matthews at excite.com> <br>wrote:<br><br>><br>> Hi i am setting up apache to work with Zope. I am using the documentation<br>> at<br>><br>> http://plone.org/documentation/howto/plone-with-apache-1.3/view?searchter<br>> m=plone%20with%20apache<br>><br>> I have istalled the Virtual host monster ok but my question is reguards<br>> the piece of code<br>><br>> <VirtualHost *><br>> ServerName me.com<br>> ServerAlias www.me.com<br>> ServerAdmin webmaster at me.com<br>> ProxyPass /<br>> http://localhost:8080/VirtualHostBase/http/me.com:80/mysite/VirtualHostRo<br>> ot/ ProxyPassReverse /<br>> http://localhost:8080/VirtualHostBase/http/me.com:80/mysite/VirtualHostRo<br>> ot/ </VirtualHost><br>><br>> I was wondering if you simply add this to your httpd.conf file or do you<br>> replace what is already there with this?<br>><br><br>That's really your choice how  to organize your configuration. If you want <br>it modular<br>then create a dedicated  config file and include it into the main <br>httpd.conf or put everything<br>together in one place.....a decision that you must make...<br><br>-aj<br>

_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!


More information about the Zope mailing list