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 )
Re: [Zope] ProxyPass - where ???
How about a trailing / after okstudio? VirtualHost 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 /VirtualHost 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 VirtualHost 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/ /VirtualHost 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 )
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 : :VirtualHost 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_ :/VirtualHost : :NameVirtualHost 206.171.167.101:443 : :VirtualHost 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_ :/VirtualHost : : 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
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 )