Michel Pelletier <michel@digicool.com> writes:
How do the rewrite rules impact accessing things like /manage?
They don't. I'll add this to the How-To.
Unfortunately, they do. When I set up a virtualhost to point to a subdirectory of the Zope site, the manage screen goes berserk. It says things like "Folder at /ACLUG/ACLUG/ACLUG" when I ask for /manage on the virtualhost. The site is working OK (except for the darn base tag) but this isn't. Ideas?
At 06:56 13/09/99 , John Goerzen wrote:
Michel Pelletier <michel@digicool.com> writes:
How do the rewrite rules impact accessing things like /manage?
They don't. I'll add this to the How-To.
Unfortunately, they do. When I set up a virtualhost to point to a subdirectory of the Zope site, the manage screen goes berserk. It says things like "Folder at /ACLUG/ACLUG/ACLUG" when I ask for /manage on the virtualhost. The site is working OK (except for the darn base tag) but this isn't.
Ideas?
This is because this kind of rewriting is not supported, and not working in Zope. Some people have patched Zope to accept an extra environment variable that makes Zope chop off 1 or more steps of the URL, making its BASE be more accurate. It can be found here: http://www.mtg.co.at/projects/subhosting/ -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-7502100 Fax: +31-35-7502111 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------
You can use the zope patches that Martijn helpfully posted to clean this up.... but then you'll be re-patching every time a new zope version is released. If you are willing to tolerate only one /ACLUG you can add one more rule to your rewrite rules: RewriteEngine on RewriteRule ^/ACLUG/(.*) /$1 RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^/(.*) /where/you/keep/your/Zope/Zope.cgi/ACLUG/$1 [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] Careful not to put an ACLUG folder inside your ACLUG folder though. ;-) That should clear things up.... -steve
"John" == John Goerzen <jgoerzen@complete.org> writes:
John> Michel Pelletier <michel@digicool.com> writes: >> > How do the rewrite rules impact accessing things like >> /manage? >> >> They don't. I'll add this to the How-To. John> Unfortunately, they do. When I set up a virtualhost to John> point to a subdirectory of the Zope site, the manage screen John> goes berserk. It says things like "Folder at John> /ACLUG/ACLUG/ACLUG" when I ask for /manage on the John> virtualhost. The site is working OK (except for the darn John> base tag) but this isn't. John> Ideas? John> _______________________________________________ Zope John> maillist - Zope@zope.org John> http://www.zope.org/mailman/listinfo/zope John> (To receive general Zope announcements, see: John> http://www.zope.org/mailman/listinfo/zope-announce John> For developer-specific issues, zope-dev@zope.org - John> http://www.zope.org/mailman/listinfo/zope-dev )
John Goerzen wrote:
Michel Pelletier <michel@digicool.com> writes:
How do the rewrite rules impact accessing things like /manage?
They don't. I'll add this to the How-To.
Unfortunately, they do. When I set up a virtualhost to point to a subdirectory of the Zope site, the manage screen goes berserk. It says things like "Folder at /ACLUG/ACLUG/ACLUG" when I ask for /manage on the virtualhost. The site is working OK (except for the darn base tag) but this isn't.
Let me make sure I understand your setup. It sounds like you have a Zope folder called ACLUG that you want a host name to point to ie, http://www.unclebob.org/ will pull the top page out of /ACLUG/index_html. To do this, you need to patch ZPublisher. Zope does not undersand the extra path elements if you rewrite anywhere into the object space other than the root. This ability is not built into the stock Zope so you don't have a bug, you just need a feature. I'm not sure who the author or the current maintainer of the patch is. -Michel -Michel
Ideas?
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(To receive general Zope announcements, see: http://www.zope.org/mailman/listinfo/zope-announce
For developer-specific issues, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
participants (4)
-
John Goerzen -
Martijn Pieters -
Michel Pelletier -
Steve Spicklemire