Hi, I've tried everything in both the Zope and Plone books and read the Apache URL Rewrite guide also, but I just can't seem to get the silly thing working! I'm sure that it does ;-) but for some reason it is beyond me. Let me tell you what I've tried, and tell me which one should work: I am using apache to rewrite the urls. 1. Host monsters, both one in the zope root folder, and multiple in each plone site's folders. I have tried both with the mappings and without (even though the books say they're not needed with apache). 2. apache rewrite rules, this is how (the current attempt looks) please assume that the big url is all on one line, email programs may have changed that. <VirtualHost *:80> ServerName example.net RewriteEngine On RewriteRule ^/(.*) http://example.net:8080/plone_site/VirtualHostBase/http/example.net:80/Virtu alHostRoot/$1 [L,P] </VirtualHost> I have tried all combinations of things in the 'example.net' places above, including the fqdn, local ip number and local host name. Is there a shortcoming in the documentation here? Have I accidentally skipped over a word somewhere that was more important than I realised? Please help me on this, it is the MAJOR sticking point in convincing people that it's a good idea for us (and them) to move to zope :-) Thanks in advance.
--On 1. November 2005 08:38:16 +0000 zope@tropolinux.com wrote:
Hi, I've tried everything in both the Zope and Plone books and read the Apache URL Rewrite guide also, but I just can't seem to get the silly thing working! I'm sure that it does ;-) but for some reason it is beyond me. Let me tell you what I've tried, and tell me which one should work: I am using apache to rewrite the urls. 1. Host monsters, both one in the zope root folder, and multiple in each plone site's folders. I have tried both with the mappings and without (even though the books say they're not needed with apache).
You only need *one* VHM in the Zope root but not multiple VHM instances.
2. apache rewrite rules, this is how (the current attempt looks) please assume that the big url is all on one line, email programs may have changed that. <VirtualHost *:80> ServerName example.net RewriteEngine On RewriteRule ^/(.*) http://example.net:8080/plone_site/VirtualHostBase/http/example.net:80/Vi rtu alHostRoot/$1 [L,P] </VirtualHost> I have tried all combinations of things in the 'example.net' places above, including the fqdn, local ip number and local host name. Is there a shortcoming in the documentation here?
The documentation - at least the one in the Zope Book - is fine. At least check if mod_proxy is installed and enabled. The *example* configuration above looks fine and it supposed to work - in fact it is work in lots of installations. Triple check your setup and enable logging for mod_rewrite...look at your Apache logs and look at the Zope logs and compare, lock at thre rewrite debug logs....that's the way to go... -aj
zope@tropolinux.com wrote:
1. Host monsters, both one in the zope root folder, and multiple in each plone site's folders. I have tried both with the mappings and without (even though the books say they're not needed with apache).
You should only have one of these, in the root of your Zope instance.
2. apache rewrite rules, this is how (the current attempt looks) please assume that the big url is all on one line, email programs may have changed that. <VirtualHost *:80> ServerName example.net RewriteEngine On RewriteRule ^/(.*) http://example.net:8080
^^^^^^^^^^^ This should be however you'd go directly to the Zope instance from the machine where Apache is running.
/plone_site/VirtualHostBase/http/example.net:80/Virtu alHostRoot/$1 [L,P] </VirtualHost> I have tried all combinations of things in the 'example.net' places above, including the fqdn, local ip number and local host name. Is there a shortcoming in the documentation here?
I don't think so, I remember reading pretty good docs for this and there are a myriad of examples if you google... cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
i've managed to get it closer to working, when you type in 'example.net' into the browser the desired page comes up (yay) but the links are all still 'myserver:8080/plone' and of course they don't resolve anyway. What's up here? I've been mucking around with this for many days now, perhaps the newer releases will make this work 'out of the box' please :-) thanks.
Am Mittwoch, den 02.11.2005, 01:30 +0000 schrieb zope@tropolinux.com:
i've managed to get it closer to working, when you type in 'example.net' into the browser the desired page comes up (yay) but the links are all still 'myserver:8080/plone' and of course they don't resolve anyway. What's up here?
I've been mucking around with this for many days now, perhaps the newer releases will make this work 'out of the box' please :-)
Yes they do - unless you muck around with it ;) Are you sure you dont have a ghost virtual host monster somewhere in the path left? If you dont yet have content, try with a fresh Data.fs, dont install/change anything in/with VHM and use your Apache config as we had last time. It should just work. HTH Tino
Am Dienstag, den 01.11.2005, 08:38 +0000 schrieb zope@tropolinux.com:
Hi, I've tried everything in both the Zope and Plone books and read the Apache URL Rewrite guide also, but I just can't seem to get the silly thing working! I'm sure that it does ;-) but for some reason it is beyond me. Let me tell you what I've tried, and tell me which one should work: I am using apache to rewrite the urls.
1. Host monsters, both one in the zope root folder, and multiple in each plone site's folders. I have tried both with the mappings and without (even though the books say they're not needed with apache).
Maybe this can screw things even more. I think we should remove the ability to add more VHM instances once one is there (and with recent zopes you already have it on install in the root)
2. apache rewrite rules, this is how (the current attempt looks) please assume that the big url is all on one line, email programs may have changed that.
<VirtualHost *:80> ServerName example.net RewriteEngine On RewriteRule ^/(.*) http://example.net:8080/plone_site/VirtualHostBase/http/example.net:80/Virtu alHostRoot/$1 [L,P] </VirtualHost>
I have tried all combinations of things in the 'example.net' places above, including the fqdn, local ip number and local host name.
The VHM management tab has all the info you need. In fact, the example there is: http://localhost:8080/VirtualHostBase/http/www.buystuff.com:80/buystuff.com/... Which would translate to: http://server-your-zope-runs:8080/VirtualHostBase/http/example.net:80/plone_... Make sure you have only one VHM object and it in your site root.
Is there a shortcoming in the documentation here? Have I accidentally skipped over a word somewhere that was more important than I realised?
I suspect there is a bit confusing documentation out there which isnt in sync with the current implementation. In case of the VHM its quite good documented in its management tab. Maybe we should uinify the places where one can find up to date documentation.
participants (4)
-
Andreas Jung -
Chris Withers -
Tino Wildenhain -
zope@tropolinux.com