Re: [Zope] ProxyPass trouble II
Stephan Goeldi wrote: > > I forgot to mention: > > The ProxyPass works ok. After some work in the management folder, Apache > sends me the error message: If the proxy rules are all working fine to start with, then there shouldn't be any reason for them to suddenly stop working. > "The proxy server received an invalid response from an upstream server. > The proxy server could not handle the request GET /. > Reason: Could not connect to remote machine: Connection refused" This is saying that it is trying to proxy your request, but the backend server is not responding (ie. the zope server is not responding). > When I reboot the server, everything goes ok again. This further strengthens the case that this problem is not related to the ProxyPass at all, rather to do with what you are doing to your zope server. It works. You do some things. It stops working. You reset the server. It works. Throughout all of that, ProxyPass is proxying your requests, so that is not your problem. Cheers, Stephen -- Stephen Harrison[EMAIL PROTECTED] New Information Paradigms www.nipltd.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] ProxyPass trouble
I use Zope with Apache 1.3.12 via ProxyPass. This is a nice workaround, because I don't have to struggle with the Rewrite stuff. My httpd.conf settings are the following: ServerName www.leimental.net ProxyPass / http://1.2.3.4:8080/leimental.net/ ProxyPassReverse / http://1.2.3.4:8080/leimental.net/ ProxyPass /cgi-bin/ http://1.2.3.4:80/cgi-bin/ ProxyPassReverse /cgi-bin/ http://1.2.3.4:80/cgi-bin/ ProxyPass /manage/ http://1.2.3.4:8080/manage/ ProxyPassReverse /manage/ http://1.2.3.4:8080/manage/ ProxyPass /misc_ http://1.2.3.4:8080/misc_ ProxyPass /p_http://1.2.3.4:8080/p_ TIA -goe- Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] ProxyPass trouble II
I forgot to mention: The ProxyPass works ok. After some work in the management folder, Apache sends me the error message: "The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /. Reason: Could not connect to remote machine: Connection refused" When I reboot the server, everything goes ok again. Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ProxyPass - where ???
How about a trailing / after okstudio? > >ServerName www.mydomaine.com.au >ProxyPass / http://demon.server.com.au:8080/okstudio >ProxyPassReverse / http://demon.server.com.au:8080/okstudio > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ProxyPass - where ???
NameVirtualHost 123.45.678.9 ServerName www.mydomaine.com.au ProxyPass / http://demon.server.com.au:8080/okstudio/ ProxyPassReverse / http://demon.server.com.au:8080/okstudio/ This is the setup you want. Note the trailing /'s. It means that anything sent to the root of www.mydomain.com.au will be proxied to demon.server.com.au:8080/okstudio The NameVirtualHost directive is necessary for the VirtualHost directives to work. It basically says this ip address is used for name based VIP. I don't quite see how this can be any use to you though, if you don't have root access then you presumably cannot edit apache's httpd.conf file which is where these settings need to be. How were you running it before, if you don't have this access? Cheers, Stephen -- Stephen Harrison[EMAIL PROTECTED] New Information Paradigms www.nipltd.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] ProxyPass - where ???
I'm having trouble configuring ProxyPass on my ISP's server. I tried to follow the instructions in the appropriate HOW-TO's without a success. I think they all assume that the user would have root access. I don't. I have built ZOPE in my user directory. Anyway ProxyPass takes two arguments, a virtual path and a URL. In my case is the virtual path a local path to my user directory or zope install directory ? So if: user directory is located @ /home/virtuals/myaccount/ and zope installation @ /home/virtuals/myaccount/zope my web site is @ www.mydomaine.com.au the server is demon.server.com.au and sub directory in ZOPE with my web site is 'okstudio' (I've used SiteAccess for this) then is this correct? ServerName www.mydomaine.com.au ProxyPass /home/virtuals/myaccount/ http://demon.server.com.au:8080/okstudio ProxyPassReverse /home/virtuals/myaccount/ http://demon.server.com.au:8080/okstudio or maybe: ServerName www.mydomaine.com.au ProxyPass /home/virtuals/myaccount/zope http://demon.server.com.au:8080/okstudio ProxyPassReverse /home/virtuals/myaccount/zope http://demon.server.com.au:8080/okstudio originally when using stuff copied from the HOW-TO I used: ServerName www.mydomaine.com.au ProxyPass / http://demon.server.com.au:8080/okstudio ProxyPassReverse / http://demon.server.com.au:8080/okstudio The result was this error message in my browser: >Proxy Error >The proxy server received an invalid response from an upstream server. >The proxy server could not handle the request GET /. >Reason: Could not connect to remote machine: Connection refused Regards, George OK Studio [EMAIL PROTECTED] Notebook.jpg
RE: [Zope] ProxyPass Problems
The idea was to have http://mysite.org go to one part of my site, and https://mysite.org go to a different section of my page. When you request a page using http:// the request comes in on port 80 is non-encrypted html. https:// requests go to port 443, and are encrypted. So the idea is to have Apache ProxyPass the secure pages (Port 443) to the Secured pages. All better now... I didn't pay attention to the existing VirtualHosts in httpd.conf and paid for it. > -Original Message- > From: Peter Sabaini [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 27, 2000 6:12 AM > To: Baker, Dennis [sjmr] > Cc: '[EMAIL PROTECTED]' > Subject: Re: [Zope] ProxyPass Problems > > > > i dont know much about ssl but wouldn't you want to pass / --> > https:// instead of / --> http:// ? > but then again i dont know a thing about ssl... > peter > > > On Mon, 26 Jun 2000, Baker, Dennis [sjmr] wrote: > > :I'm having a problem with getting ProxyPass and SSL to work. > I followed the > :How-to on Using Apache with ZServer, and unfo's How-To on > :Apache+ZServer+SSL. And my setup is nearly identical to the > one listed on > :the howto. I have my main site in the root of my Zope > Setup, and My SSL > :site is in a subdirectory of the root called SecureSite. > : > :After setting up the ProxyPass Directives in Apache (I have > the httpd.conf > :section attached below) and Adding the SiteRoot objects on > Zope I can access > :the main Site at http://mysite.org, but if I try to access > :https://mysite.org my web browser hangs until it times out. > Also, it > :becomes impossible to browse the SecureSite Folder unless I > delete the > :SiteRoot Object. > : > :It appears to be some kind of Apache issue, however I can't > figure out why > :it won't connect, the directives are almost identical to > the ones on the > :Howto. Any Suggestions ?? > : > : Snippet from httpd.conf --- > :NameVirtualHost 206.171.167.101:80 > : > : > :ServerAdmin [EMAIL PROTECTED] > :ServerName mysite.org > :ProxyPass / http://mysite.org:8080/ > :ProxyPassReverse / http://mysite.org:8080/ > :ProxyPass /misc_ http://mysite.org:8080/misc_ > :ProxyPass /p_ http://mysite.org:8080/p_ > : > : > :NameVirtualHost 206.171.167.101:443 > : > : > :ServerAdmin [EMAIL PROTECTED] > :ServerName mysite.org > :ProxyPass / http://mysite.org:8080/SecureSite/ > :ProxyPassReverse / http://mysite.org:8080/SecureSite/ > :ProxyPass /misc_ http://mysite.org:8080/misc_ > :ProxyPass /p_ http://mysite.org:8080/p_ > : > : > : End Snippet > : > :Dennis Baker > :Information Systems Manager, St. Joseph's Medical Resources > : > : > :___ > :Zope maillist - [EMAIL PROTECTED] > :http://lists.zope.org/mailman/listinfo/zope > :** No cross posts or HTML encoding! ** > :(Related lists - > : http://lists.zope.org/mailman/listinfo/zope-announce > : http://lists.zope.org/mailman/listinfo/zope-dev ) > : > > -- > > _ > peter sabaini, mailto: [EMAIL PROTECTED] > - > > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ProxyPass
I don't know, but I've been trying to figure it out for a week. Any ideas?? Here's what I've read so far: 1. Use ProxyVia. Problem: All ProxyVia does is create a header called "HTTP_Via" with the value of "1.1 mysite.com" Worthless. 2. Use custom headers. Problem: Zope doesn't seem to recognize the custom headers. If I do: Header set MyHeader "My Custom Header" then MyHeader never shows up in the REQUEST namespace. Maybe I'm doing it wrong -- I'm new to all this stuff. But if I can't find a good solution, I might just hack the Apache source code to have ProxyVia pass the IP address instead of the site calling it. - T.J. - Original Message - From: RC Compaan <[EMAIL PROTECTED]> To: Zope <[EMAIL PROTECTED]> Sent: Tuesday, June 20, 2000 7:50 AM Subject: [Zope] ProxyPass > Is there anyway to get around the fact that the remote ip is the server's ip > if you use Apache's ProxyPass directive to pass requests on to Zope? > > Roché > > > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ProxyPass Problems
i dont know much about ssl but wouldn't you want to pass / --> https:// instead of / --> http:// ? but then again i dont know a thing about ssl... peter On Mon, 26 Jun 2000, Baker, Dennis [sjmr] wrote: :I'm having a problem with getting ProxyPass and SSL to work. I followed the :How-to on Using Apache with ZServer, and unfo's How-To on :Apache+ZServer+SSL. And my setup is nearly identical to the one listed on :the howto. I have my main site in the root of my Zope Setup, and My SSL :site is in a subdirectory of the root called SecureSite. : :After setting up the ProxyPass Directives in Apache (I have the httpd.conf :section attached below) and Adding the SiteRoot objects on Zope I can access :the main Site at http://mysite.org, but if I try to access :https://mysite.org my web browser hangs until it times out. Also, it :becomes impossible to browse the SecureSite Folder unless I delete the :SiteRoot Object. : :It appears to be some kind of Apache issue, however I can't figure out why :it won't connect, the directives are almost identical to the ones on the :Howto. Any Suggestions ?? : : Snippet from httpd.conf --- :NameVirtualHost 206.171.167.101:80 : : :ServerAdmin [EMAIL PROTECTED] :ServerName mysite.org :ProxyPass / http://mysite.org:8080/ :ProxyPassReverse / http://mysite.org:8080/ :ProxyPass /misc_ http://mysite.org:8080/misc_ :ProxyPass /p_ http://mysite.org:8080/p_ : : :NameVirtualHost 206.171.167.101:443 : : :ServerAdmin [EMAIL PROTECTED] :ServerName mysite.org :ProxyPass / http://mysite.org:8080/SecureSite/ :ProxyPassReverse / http://mysite.org:8080/SecureSite/ :ProxyPass /misc_ http://mysite.org:8080/misc_ :ProxyPass /p_ http://mysite.org:8080/p_ : : : End Snippet : :Dennis Baker :Information Systems Manager, St. Joseph's Medical Resources : : :___ :Zope maillist - [EMAIL PROTECTED] :http://lists.zope.org/mailman/listinfo/zope :** No cross posts or HTML encoding! ** :(Related lists - : http://lists.zope.org/mailman/listinfo/zope-announce : http://lists.zope.org/mailman/listinfo/zope-dev ) : -- _ peter sabaini, mailto: [EMAIL PROTECTED] - ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] ProxyPass Problems
Never mind, Incidentally if you are going to use RedHat's SecureServer, they already have a virtual host assigned to port 443, with all of the SSL directives in it. You need to place the ProxyPass directives in the existing default:443 virtual host section or copy the SSL Directives into the virtual host you create for zope (or move them into the global settings). Strangely enough, any single request can only be handle by one virtual host :). > -Original Message- > From: Baker, Dennis [sjmr] [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 26, 2000 9:45 AM > To: '[EMAIL PROTECTED]' > Subject: [Zope] ProxyPass Problems > > > I'm having a problem with getting ProxyPass and SSL to work. > I followed the > How-to on Using Apache with ZServer, and unfo's How-To on > Apache+ZServer+SSL. And my setup is nearly identical to the > one listed on > the howto. I have my main site in the root of my Zope Setup, > and My SSL > site is in a subdirectory of the root called SecureSite. > > After setting up the ProxyPass Directives in Apache (I have > the httpd.conf > section attached below) and Adding the SiteRoot objects on > Zope I can access > the main Site at http://mysite.org, but if I try to access > https://mysite.org my web browser hangs until it times out. Also, it > becomes impossible to browse the SecureSite Folder unless I delete the > SiteRoot Object. > > It appears to be some kind of Apache issue, however I can't > figure out why > it won't connect, the directives are almost identical to the > ones on the > Howto. Any Suggestions ?? > > Snippet from httpd.conf --- > NameVirtualHost 206.171.167.101:80 > > > ServerAdmin [EMAIL PROTECTED] > ServerName mysite.org > ProxyPass / http://mysite.org:8080/ > ProxyPassReverse / http://mysite.org:8080/ > ProxyPass /misc_ http://mysite.org:8080/misc_ > ProxyPass /p_ http://mysite.org:8080/p_ > > > NameVirtualHost 206.171.167.101:443 > > > ServerAdmin [EMAIL PROTECTED] > ServerName mysite.org > ProxyPass / http://mysite.org:8080/SecureSite/ > ProxyPassReverse / http://mysite.org:8080/SecureSite/ > ProxyPass /misc_ http://mysite.org:8080/misc_ > ProxyPass /p_ http://mysite.org:8080/p_ > > > End Snippet > > Dennis Baker > Information Systems Manager, St. Joseph's Medical Resources > > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] ProxyPass Problems
I'm having a problem with getting ProxyPass and SSL to work. I followed the How-to on Using Apache with ZServer, and unfo's How-To on Apache+ZServer+SSL. And my setup is nearly identical to the one listed on the howto. I have my main site in the root of my Zope Setup, and My SSL site is in a subdirectory of the root called SecureSite. After setting up the ProxyPass Directives in Apache (I have the httpd.conf section attached below) and Adding the SiteRoot objects on Zope I can access the main Site at http://mysite.org, but if I try to access https://mysite.org my web browser hangs until it times out. Also, it becomes impossible to browse the SecureSite Folder unless I delete the SiteRoot Object. It appears to be some kind of Apache issue, however I can't figure out why it won't connect, the directives are almost identical to the ones on the Howto. Any Suggestions ?? Snippet from httpd.conf --- NameVirtualHost 206.171.167.101:80 ServerAdmin [EMAIL PROTECTED] ServerName mysite.org ProxyPass / http://mysite.org:8080/ ProxyPassReverse / http://mysite.org:8080/ ProxyPass /misc_ http://mysite.org:8080/misc_ ProxyPass /p_ http://mysite.org:8080/p_ NameVirtualHost 206.171.167.101:443 ServerAdmin [EMAIL PROTECTED] ServerName mysite.org ProxyPass / http://mysite.org:8080/SecureSite/ ProxyPassReverse / http://mysite.org:8080/SecureSite/ ProxyPass /misc_ http://mysite.org:8080/misc_ ProxyPass /p_ http://mysite.org:8080/p_ End Snippet Dennis Baker Information Systems Manager, St. Joseph's Medical Resources ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ProxyPass
Hi Roché > Thanks Pierre > > This is a relief, I really didn't want to switch back to pcgi. I have > worked a little bit with the rewritemodule but if anybody has an example on > how to do this it would really be helpfull. > > Roché > I don't know if it help, but My problem was to serve any request to Apache to the ZServer, and to change the URL like that: http://path/file.html(Apache server) to http://path:8080/?file.html (ZServer, with the file as a query_string) and I wanted it to be transparent . So, I matched all the URLs with htm and html extension to modify them. The first thing u have to do is defining the regular expression which will match the URL you want to serve as a proxy then u can insert, and modify your URL (which will be served transparently with the [P] flag. the big problem is to find a way to match what u want, the syntax is horrible (I passed a whole day on these three lines). for more informations about rewrite_mod: http://www.kenzonca.com/manual/mod/mod_rewrite.html my example: (4 lines in the httpd.conf file this is very powerfull) #Attention: ici insrtion des regles de reecriture avec mod_write RewriteEngineon RewriteRule^(^([^/]*/)*)([^/]*\.htm)$ http://margo.ina.fr:8080$1?$3 [P] # fichiers HTM RewriteRule^(^([^/]*/)*)([^/]*\.html)$ http://margo.ina.fr:8080$1?$3 [P] # fichiers html RewriteRule^(^([^/]*/)*)$ http://margo.ina.fr:8080$1 [P] # pas de fichier demande (pages sommaires Zope) I hope it help u! Pierre ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] ProxyPass
Thanks Pierre This is a relief, I really didn't want to switch back to pcgi. I have worked a little bit with the rewritemodule but if anybody has an example on how to do this it would really be helpfull. Roché > use the rewriterule module, with the [P] flag > this is very powerfull (a little hard to use, but...) and u can > do what u want > with URLs > (doc on Apache site), and u can use Apache as a proxy server much more > powerfull (it looks like I like this word ;^) ). > > Pierre > > > Is there anyway to get around the fact that the remote ip is > the server's ip > > if you use Apache's ProxyPass directive to pass requests on to Zope? > > > > Roché > > > > ___ > > Zope maillist - [EMAIL PROTECTED] > > http://lists.zope.org/mailman/listinfo/zope > > ** No cross posts or HTML encoding! ** > > (Related lists - > > http://lists.zope.org/mailman/listinfo/zope-announce > > http://lists.zope.org/mailman/listinfo/zope-dev ) > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] ProxyPass
Is there anyway to get around the fact that the remote ip is the server's ip if you use Apache's ProxyPass directive to pass requests on to Zope? Roché ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )