If anyone can help, I'd appreciate it. I'm trying to setup zope to work with apache. I want apache to answer everything except when an url goes to /blog, then I want zope to take over for that directory. I have my rewrite rule setup as: NameVirtualHost * <VirtualHost *> ServerName myservername Rewrite Engine On RewriteLog "/var/log/apache/rewrite.log RewriteLogLevel 1 RewriteRule ^/(.*) http://127.0.0.1:8080/VirtualHostBase/http/myservername:80/blog/VirtualHostR... [L,P] </VirtualHost> Whenever I try to access my server I get: Forbidden You don't have permission to access / on this server. I've tried many combinations from the tutorials and I either get this or nothing gets passed to zope. I turned mod_proxy on with: <IfModule mod_proxy.c> ProxyRequests On <Directory proxy:"> Order deny,allow Allow from myservername Deny from all </Directory> </IfModule> Any ideas?
with apache. I want apache to answer everything except when an url goes to /blog, then I want zope to take over for that directory.
RewriteRule ^/(.*) http://127.0.0.1:8080/VirtualHostBase/http/myservername:80/blog/VirtualH ostRoot/_vh_blog/$1[L,P]
The first part of the rewriterule is the pattern it tries to match on ghe incoming url. "^/(.*)" means every url. Yours should look like something like: RewriteRule ^/blog(.*) http://127.0.0.1:8080/VirtualHostBase/http/myservername:80/blog/VirtualH ostRoot/_vh_blog/$1[L,P] Read mod_rewrite documentation. Reagrds, Sandor
Sam Bright wrote:
I want apache to answer everything except when an url goes to /blog ... RewriteRule ^/(.*) http://127.0.0.1:8080/VirtualHostBase/http/myservername:80/blog/VirtualHostR... [L,P]
If you only want Zope to handle /blog* then the above should be RewriteRule ^/blog(.*) http://127.0.0.1:8080/Virtua...
I turned mod_proxy on with: <IfModule mod_proxy.c> ProxyRequests On
No. What on earth made you think that was necessary? Its not, remove it. You don't need to change any mod_proxy directives except for *maybe* the ProxyVia directive. -- Jamie Heilman http://audible.transient.net/~jamie/
Sam Bright wrote at 2004-5-13 21:03 -0800:
... RewriteRule ^/(.*) http://127.0.0.1:8080/VirtualHostBase/http/myservername:80/blog/VirtualHostR... [L,P]
The rule above is too complex (and does not what you want as others already pointed out). A better one: RewriteRule ^/blog/.* http://127.0.0.1:8080/VirtualHostBase/http/myservername:80/VirtualHostRoot$0
</VirtualHost>
Whenever I try to access my server I get:
Forbidden You don't have permission to access / on this server.
This error message does not come from your VHost. Almost surely, you VHost definition was not recognized. "httpd" has an option to verify VHost definitions. -- Dieter
participants (4)
-
Dieter Maurer -
Jamie Heilman -
Sam Bright -
zope@netchan.cotse.net