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 < clsdaniel@egresados.itnogales.edu.mx> 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 from Apache+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.xxx> ServerName www.domain.net RewriteEngine On RewriteRule ^/manage(.*)
http://www.domain.co.uk:8080/manage/VirtualHostBase/https/www.domain.net:443/VirtualHostRoot$1[L,P] </VirtualHost>
-------------------- Carlos Daniel Ruvalcaba
On 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
ok - I've got further on with this which is great but not the final bit... Using the below as 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:80 <VirtualHost xxx.xxx.x.x:80> ServerName dev.domain.com RewriteEngine On RewriteRule ^/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 <michael.milne@gmail.com> wrote:
Thanks alot. I didn't realise you could do this within the RewriteRule directive. Cheers.
On 4/16/06, Carlos Daniel Ruvalcaba Valenzuela <clsdaniel@egresados.itnogales.edu.mx> 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 from Apache+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.xxx> ServerName www.domain.net RewriteEngine On RewriteRule ^/manage(.*)
http://www.domain.co.uk:8080/manage/VirtualHostBase/https/www.domain.net:443/VirtualHostRoot$1[L,P] </VirtualHost>
-------------------- Carlos Daniel Ruvalcaba
On 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
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
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 <chris@simplistix.co.uk> 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
participants (2)
-
Chris Withers -
michael nt milne