[Zope] Apache to Zope/Plone with ProxyPass - how can I get Apache cgi scripts?

Simon Forster simon-lists at ldml.com
Tue Jun 22 08:44:53 EDT 2004


Can you not modify the ProxyPass and ProxyPassReverse directives? 
Something like:

ProxyPass /zope/ http://erebus:8080/zope/erebus_plone/
ProxyPassReverse /zope/ http://erebus:8080/zope/erebus_plone/

Then all requests to http://erebus.ait.ie/zope/ get redirected to port 
8080, all others are processed by Apache as normal. At least that's my 
understanding of the docs.

Oh. Being a pedant I'd prefer:

ProxyPass /zope/ http://127.0.0.1:8080/zope/erebus_plone/
ProxyPassReverse /zope/ http://127.0.0.1:8080/zope/erebus_plone/

But that's just 'cause I'd be able to see that it's looping back to the 
local machine.

Simon Forster
_____________________________________________________
  LDML Ltd, 62 Pall Mall, London, SW1Y 5HZ, UK
  Tel: +44 (0)70 9230 5244   Fax: +44 (0)70 9230 5247
_____________________________________________________

On 18 Jun 2004, at 13:15, Cormac McClean wrote:

> Hi,
>
> This is a follow up to an earlier question, which involved trying to 
> access Plone as the front page behind Apache. I got this working 
> thanks to Simon Forster, using ProxyPass and a SiteRoot object.
>
> However, I still need to access some cgi scripts from Apache's cgi-bin 
> directory. Is this possible?
>
> Here's what I have at the moment:
>
> <VirtualHost *>
>    ServerName erebus.ait.ie
>    DocumentRoot "/usr/local/apache/htdocs/zope"
>    ProxyPass / http://erebus:8080/zope/erebus_plone/
>    ProxyPassReverse / http://erebus:8080/zope/erebus_plone/
> </VirtualHost>
>
> When I try accessing a cgi script in /cgi-bin, I get a not found error 
> (404).
>
> I also tried this:
>    ProxyPass /cgi-bin/ !
> thinking that it might override the Proxying and just go to /cgi-bin, 
> but I get an error
> ---
>
>
>  Bad Request
>
> Your browser sent a request that this server could not understand.
> ---
>
> I have tried using mod-rewrite and the Virtual Host Monster without 
> ProxyPass, which allows me to access Apache's cgi scripts, but I don't 
> get Plone properly. I wonder is it possible to combine ProxyPass and 
> RewriteRules?
>
> Thanks in advance,
> Cormac.
>
>
>
>
> The information contained in this email is confidential and is 
> designated solely for the attention of the intended recipient(s). If 
> you have received this email in error, please do not use or transmit 
> it for any purpose but rather notify us immediately and delete all 
> copies of this email from your computer system(s). Unless otherwise 
> specifically agreed by our authorised representative, the views 
> expressed in this email are those of the author only and shall not 
> represent the view of or otherwise bind Athlone Institute of 
> Technology. Contact administrator at ait.ie or telephone 090 6471858.
>
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email 
> ______________________________________________________________________
>
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman-20/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
> http://mail.zope.org/mailman-20/listinfo/zope-announce
> http://mail.zope.org/mailman-20/listinfo/zope-dev )




More information about the Zope mailing list