Re: [Zope] Getting www.domain.com:8080/manage to go through Apache
Ok, good to know that.So if I get this right I add in _vh_manage to the VirtualHostRoot in Zope which will cause /manage/ to be appended onto the all the URLs within Zope. The correct pages will still be served and the Apache re-write rule will be satisfied... On 4/18/06, Alexis Roda [EMAIL PROTECTED] wrote: michael nt milne escribió: ok, thanks. Does anyone know how to re-write everything going through /manage/ ?Part of the answer is here (from the Virtual Host Monster's About tab): Inside-out hostingAnother use for virtual hosting is to make Zope appear to be part of asite controlled by another server. For example, Zope might only servethe contents of http://www.mycause.org/dynamic_stuff. To accomplishthis, you want to add dynamic_stuff to the start of all Zope-generatedURLs.If you insert VirtualHostRoot, followed by one or more path elements that start with '_vh_', then these elements will be ignored duringtraversal and then added (without the '_vh_') to the start of generatedURLs. For instance, a request for /a/VirtualHostRoot/_vh_z/ will traverse a and then generate URLs that start with /z.In our example, you would have the main server send requests forhttp://www.mycause.org/dynamic_stuff/anything to Zope, rewritten as/VirtualHostRoot/_vh_dynamic_stuff/anything.HTH-- michael ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Getting www.domain.com:8080/manage to go through Apache
michael nt milne wrote: *However* these panes all fill with 404s, page not found which seems strange considering I am able to get the login and front page ok.. Not at all, you only rewrite ^/manage(.*), nothing else will get rewritten. This is an Apache configuration issue, your best bet is to ask on #apache on irc.freenode.net... Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Getting www.domain.com:8080/manage to go through Apache
ok, thanks. Does anyone know how to re-write everything going through /manage/ ? I realise this isn't an apache list but I've received some great help here. On 4/18/06, Chris Withers [EMAIL PROTECTED] wrote: michael nt milne wrote: *However* these panes all fill with 404s, page not found which seems strange considering I am able to get the login and front page ok..Not at all, you only rewrite ^/manage(.*), nothing else will get rewritten. This is an Apache configuration issue, your best bet is to ask on#apache on irc.freenode.net...Chris--Simplistix - Content Management, Zope Python Consulting- http://www.simplistix.co.uk-- michael ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Getting www.domain.com:8080/manage to go through Apache
Thanks alot. I didn't realise you could do this within the RewriteRule directive. Cheers.On 4/16/06, Carlos Daniel Ruvalcaba Valenzuela [EMAIL PROTECTED] wrote:Hello, why don't you write a Rule inside the VirtualDomain instead of having it's own location, something like this will do:I think that what you want is tu use Mod Proxy to pass request fromApache+SSL yo your Zope.Anyways, I think it would be better to not use Location just to redirect from mod_rewrite as it can be done without it.VirtualHost xx.x.xxx.xxxServerName www.domain.netRewriteEngine OnRewriteRule ^/manage(.*) http://www.domain.co.uk:8080/manage/VirtualHostBase/https/www.domain.net:443/VirtualHostRoot$1 [L,P]/VirtualHostCarlos Daniel RuvalcabaOn Fri, 2006-04-14 at 16:52 +0100, michael nt milne wrote: Hi I've got various virtual hosts running but am having a few issues getting the administration site on www.domain.com:8080/manage to go through Apache. I want to route this all through SSL. What I can get is the admin for the *individual site* but not all the sites listed under a Zope instance. I'm trying to use location/location to put a request for www.domain.com/manage through to www.domain.com:8080/manage in Zope and then back out through port 443. I haven't set up the SSL certificates yet. Here's what I've got so far which isn't working quite as planned. Anyone achieved this at all? Thanks NameVirtualHost xx.x.xxx.xxx:80 VirtualHost xx.x.xxx.xxx:80 ServerName www.domain.net location /manage RewriteEngine On RewriteRule ^/(.*) http://www.domain.co.uk:8080/manage/VirtualHostBase/https/www.domain.net:443/VirtualHostRoot/$1 [L,P] /location /VirtualHost -- michael ___ Zope maillist-Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding!** (Related lists -http://mail.zope.org/mailman/listinfo/zope-announcehttp://mail.zope.org/mailman/listinfo/zope-dev )-- michael ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Getting www.domain.com:8080/manage to go through Apache
ok - I've got further on with this which is great but not the final bit... Using the belowas a test before re-writing to a secure port I get the zope pop-up password prompt which then gives me the three-panes of the admin screen. *However* these panes all fill with 404s, page not found which seems strange considering I am able to get the login and front page ok.. NameVirtualHost xxx.xxx.x.x:80VirtualHost xxx.xxx.x.x:80ServerName dev.domain.comRewriteEngine OnRewriteRule ^/manage(.*) http://xxx.xxx.x.x:8090/manage/VirtualHostBase/http/dev.domain.com:80/VirtualHostRoot/$1 [L,P]/VirtualHost On 4/17/06, michael nt milne [EMAIL PROTECTED] wrote: Thanks alot. I didn't realise you could do this within the RewriteRule directive. Cheers. On 4/16/06, Carlos Daniel Ruvalcaba Valenzuela [EMAIL PROTECTED] wrote: Hello, why don't you write a Rule inside the VirtualDomain instead of having it's own location, something like this will do: I think that what you want is tu use Mod Proxy to pass request fromApache+SSL yo your Zope.Anyways, I think it would be better to not use Location just to redirect from mod_rewrite as it can be done without it. VirtualHost xx.x.xxx.xxxServerName www.domain.netRewriteEngine OnRewriteRule ^/manage(.*) http://www.domain.co.uk:8080/manage/VirtualHostBase/https/www.domain.net:443/VirtualHostRoot$1 [L,P]/VirtualHostCarlos Daniel RuvalcabaOn Fri, 2006-04-14 at 16:52 +0100, michael nt milne wrote: Hi I've got various virtual hosts running but am having a few issues getting the administration site on www.domain.com:8080/manage to go through Apache. I want to route this all through SSL. What I can get is the admin for the *individual site* but not all the sites listed under a Zope instance. I'm trying to use location/location to put a request for www.domain.com/manage through to www.domain.com:8080/manage in Zope and then back out through port 443. I haven't set up the SSL certificates yet. Here's what I've got so far which isn't working quite as planned. Anyone achieved this at all? Thanks NameVirtualHost xx.x.xxx.xxx:80 VirtualHost xx.x.xxx.xxx:80 ServerName www.domain.net location /manage RewriteEngine On RewriteRule ^/(.*) http://www.domain.co.uk:8080/manage/VirtualHostBase/https/www.domain.net:443/VirtualHostRoot/$1 [L,P] /location /VirtualHost -- michael ___ Zope maillist- Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding!** (Related lists -http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) -- michael -- michael ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )