I'm new to the list - just in the process of evaluating Zope for possible use. I've had no problems setting up 2.6.1 and getting it to run on Apache 2 on Linux RH8. My problem comes from a lack of success getting Zope running behind Apache. My situation is that I am running only a localhost, located for now on a static IP in our LAN (10.1.3.225). Apache works fine, and I have no virtual hosts set up apart from this one: <VirtualHost 10.1.3.225> ServerName 10.1.3.225 DocumentRoot /var/www/html RewriteEngine On RewriteCond %{HTTP:Authorization} ^/(.*) RewriteRule ^/Zope/(.*) http://10.1.3.225:8080/VirtualHostBase/http/10.1.3.225:80/VirtualHostRoot/$1 [L,P] </VirtualHost> what I'm trying to do is set up a situation where via Apache, Zope will be serving anything requested in the /Zope directory, and all other requests will go to Apache. Zope will I set up a folder in Zope at /dantest, and I can access it fine at http://10.1.3.225:8080/dantest I've tried various permutations of the RewriteRule, such as ...VirtualHostBase/http/10.1.3.25:80/VirtualHostRoot/dantest/$1 ...VirtualHostBase/http/10.1.3.25:80/dantest/VirtualHostRoot/$1 but no joy. I think that things are kind of getting there, however. If I try to access http://10.1.3.225/Zope/ using the above set up, I get the index of the directory /var/www/html/Zope - in other words, I get no rewrite and it goes via Apache to the Zope directory Apache serves. On the other hand, if I comment out the RewriteCond line, I get You don't have permission to access /Zope/ on this server. So there is some issue around authentication, I guess... I added a VHM in the folder /dantest, called it zopeIHope, thinking that if I matched the name of the virtual host and the VHM that that had something to do with it. But no. So I tried moving it to the Root and that made no difference either... So what gives? I toyed with ProxyPass, - I can't be sure that the server that I will eventually be hosted on will allow me to use it - but I haven't found any documentation on what Apache 2.0 does in this regard - unlike mod_rewrite.so, it doesn't seem that mod_proxy is part of it, but that probably tells you how little I actually know about Apache.... ;-). >From the docs, I'd rather use RewriteRule stuff anyway. I have a feeling that someone out there can see exactly what I'm doing wrong - your help greatly appreciated. I'm on the batch list so I may not get your reply quickly. If you can, let me know directly as well... TIA Dan DAN DONALDSON Webmaster UNICEF Canada ddonaldson@unicef.ca www.unicef.ca Tel.: 416 482-4444 ext. 890 Fax: 416 482-8035
Dan Donaldson wrote:
<VirtualHost 10.1.3.225> ServerName 10.1.3.225 DocumentRoot /var/www/html RewriteEngine On RewriteCond %{REQUEST_URI} /_ [OR] RewriteCond %{REQUEST_URI} /VirtualHostBase/ [OR] RewriteCond %{REQUEST_URI} /VirtualHostRoot/ RewriteRule .* - [F] RewriteRule ^/Zope(.*) http://10.1.3.225:8080/VirtualHostBase/http/10.1.3.225:80/VirtualHostRoot/_v... [P,L] </VirtualHost>
Consider running zope on 127.0.0.1:8080 once you're sure your proxy is working. -- Jamie Heilman http://audible.transient.net/~jamie/ "I was in love once -- a Sinclair ZX-81. People said, "No, Holly, she's not for you." She was cheap, she was stupid and she wouldn't load -- well, not for me, anyway." -Holly
On Wed, 2003-04-02 at 07:50, Dan Donaldson wrote:
I'm new to the list
Welcome. I'll give this a shot. Huge caveat: I use Apache 1.3. If something I say is moronic WRT Apache 2, just ignore me. :-)
<VirtualHost 10.1.3.225> ServerName 10.1.3.225 DocumentRoot /var/www/html RewriteEngine On RewriteCond %{HTTP:Authorization} ^/(.*) RewriteRule ^/Zope/(.*) http://10.1.3.225:8080/VirtualHostBase/http/10.1.3.225:80/VirtualHostRoot/$1 [L,P] </VirtualHost>
Here's what I'd try, in order... test after each step to see if you get any joy and/or useful errors: 1. Comment out DocumentRoot 2. Comment out the RewriteCond 3. Move your RewriteRule outside of the vhost block. 4. Add a ServerAlias directive Not that any of those steps is necessarily how you want the final configtion to look, of course... but you'll probably find your problem. So far, it doesn't sound like you're even hitting Zope yet, so I'd fiddle with httpd.conf until you at least get a *Zope* error message. *Then* you should worry about whether you crafted the url correctly.
So there is some issue around authentication, I guess...
That should be established by step 2 or 3.
I added a VHM in the folder /dantest, called it zopeIHope,
Not necessary. You just need one in the root and the name is irrelevant. HTH... I hope one of those troubleshooting steps helps identify your problem. Feel free to share any entries from your Apache logs that might be illuminating. Dylan
participants (3)
-
Dan Donaldson -
Dylan Reinhardt -
Jamie Heilman