How can I configure ZAP so that all http requests go through the cgi? Zope is the only thing running through this apache, so I don't want everything on the site prefixed with Zope/ (or anything else, so no, I don't just want to know how to change the prefix). This is basically what is keeping me on ZopeHTTPServer. BTW, running ZopeHTTPServer multi-threaded worked well for about 15 minutes. Then suddenly certain pages wouldn't load. I stopped and restarted the server, but the pages still wouldn't load. I also noticed that if I stopped Netscape and hit reload, it would cause several new ZopeHTTPServer instances to appear, and doing so again would continue to create new instances which never seemed to dissappear. Are these locking the items they are downloading? The behavior I saw seemed consonant with it locking the item it was downloading, then failing to recognize the netscape had disconnected, and thus never removed its lock. When I restarted it single-threaded, all the pages came up without a problem. I would really like to move to Zap, but I can't afford at this point to have the URL of the page change. How can I make a Zope pcgi accessible as the root of a Zap install? Please help. Howard C. Shaw III Programmer/SysAdmin St. Thomas High School
On Sun, 14 Mar 1999, Shaw, Howard wrote:
How can I configure ZAP so that all http requests go through the cgi? Zope is the only thing running through this apache, so I don't want everything on the site prefixed with Zope/ (or anything else, so no, I don't just want to know how to change the prefix). This is basically what is keeping me on ZopeHTTPServer.
[snip]
How can I make a Zope pcgi accessible as the root of a Zap install? Please help.
In looking through my Apache configuration files, I tried to piece together what changes I made. Here's what I think you need to do. In httpd.conf, make sure you have these lines (I put them at the end): Alias / /cgi-bin/Zope.cgi # Zope configuration maps /Zope/ to the Zope.cgi CGI script RewriteEngine on RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^/(.*) /home/httpd/cgi-bin/Zope.cgi/$1 [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] NOTE: In the RewriteRule directive above, the [e=...] stuff should go directly after the ...Zope.cgi/$1 section, with a space separating them, e.g. ...Zope.cgi/$1 [e=HTTP...] You will need to munge the path in the RewriteRule directive, where it says /home/httpd to be wherever your document root is. I did this a while back, and have since switched from Apache to ZServer to test it out, so I haven't used it lately. However, this should work, as I never changed the config files after I stopped using Apache. Let me know if you have problems; I'll do what I can to help.
Howard C. Shaw III
jkh
On Sun, 14 Mar 1999, Shaw, Howard wrote:
How can I configure ZAP so that all http requests go through the cgi? Zope is the only thing running through this apache, so I don't want everything on the site prefixed with Zope/ (or anything else, so no, I don't just want to know how to change the prefix). This is basically what is keeping me on ZopeHTTPServer.
[snip]
How can I make a Zope pcgi accessible as the root of a Zap install? Please help.
In looking through my Apache configuration files, I tried to piece together what changes I made. Here's what I think you need to do.
In httpd.conf, make sure you have these lines (I put them at the end):
Alias / /cgi-bin/Zope.cgi
# Zope configuration maps /Zope/ to the Zope.cgi CGI script RewriteEngine on RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^/(.*) /home/httpd/cgi-bin/Zope.cgi/$1 [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]
NOTE: In the RewriteRule directive above, the [e=...] stuff should go directly after the ...Zope.cgi/$1 section, with a space separating them, e.g. ...Zope.cgi/$1 [e=HTTP...]
You will need to munge the path in the RewriteRule directive, where it says /home/httpd to be wherever your document root is.
I did this a while back, and have since switched from Apache to ZServer to test it out, so I haven't used it lately. However, this should work, as I never changed the config files after I stopped using Apache.
Let me know if you have problems; I'll do what I can to help.
Howard C. Shaw III
jkh
Here's a setup that works for me. ----- <VirtualHost 216.22.173.198> ServerName www.okaynetwork.com ServerAdmin wade@okaynetwork.com DocumentRoot /home/ok/htdocs ErrorLog logs/okaynetwork.com-error_log TransferLog logs/okaynetwork.com-access_log RewriteEngine On RewriteLog logs/okaynetwork-rewrite-log RewriteLogLevel 0 RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule (.*) /usr/local/Zope/Zope/Zap/cgi-bin/Zope.cgi$1 [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-http d-cgi,l] </VirtualHost> --------- Wade Leftwich Okay Network Services, Ithaca NY tel 607-277-1334 fax 607-272-3612
participants (3)
-
Jeff K. Hoffman -
Shaw, Howard -
Wade Leftwich