ok. i am trying to get apache to work w/ zope. with lots of help from #irc I've gotten it this far.. and I couldnt find any info in the mailing list about this. my whole site is zope and I am using apache. my rewrite rule comes out to be: RewriteEngine on RewriteLog /var/log/httpd-rewrite.log RewriteLogLevel 9 RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^(.*) /usr/local/apache/cgi-bin/Zope.cgi/$1 \ [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] the last line, of course is on one line (\ is not really there just signifying where following line should start). now what happens is crazy: when I goto www.mydomain.com/ I get apache (bad) when I goto mydomain.com// I get zope (good) when I goto mydomain.com/manage I get zope mgmt (great) I can traverse url's fine.. just the bloody index_html wont show up! why is it acting this way? its tired... err I'm tired.. very tired.. has anyone figured out how to get Zope workign w/ Roxen? is it easier than this? to get it to work when i just type mydomain.com/ and get Zope all hell breaks lose - the mgmt page gets files not found, etc.. that rewrite rule is essentially: ^/(.*) /usr/local/apache/cgi-bin/Zope.cgi$1 which doesnt do anything but give me zope on mydomain.com/ ok.. my stuff is working now (hmmmm.. being this late..)... oh well who cares. IT WORKS! definetly keep tabs on http-rewrite.log.. cool stuff.. sorry this msg went no where -- ~alan
At 03:28 03/11/99 , alan runyan wrote:
ok. i am trying to get apache to work w/ zope. with lots of help from #irc I've gotten it this far.. and I couldnt find any info in the mailing list about this.
my whole site is zope and I am using apache. my rewrite rule comes out to be:
RewriteEngine on RewriteLog /var/log/httpd-rewrite.log RewriteLogLevel 9 RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^(.*) /usr/local/apache/cgi-bin/Zope.cgi/$1 \ [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]
the last line, of course is on one line (\ is not really there just signifying where following line should start).
The slashes are significant. Just think what you are doing: You match all URLs, so including the starting slash: /something You then paste this behind Zope.cgi/: Zope.cgi//something Remove the slash in between Zope.cgi and the $1: /usr/local/apache/cgi-bin/Zope.cgi$1 [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] And make sure the above is all on one line. This works, I use this for my own site (running behind Apache 1.3.9). This information can also be found in HowTo's at Zope.org and in dozens of threads on this mailinglist, BTW. -- 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 ------------------------------------------
alan runyan wrote:
ok. i am trying to get apache to work w/ zope. with lots of help from #irc I've gotten it this far.. and I couldnt find any info in the mailing list about this.
my whole site is zope and I am using apache. my rewrite rule comes out to be:
RewriteEngine on RewriteLog /var/log/httpd-rewrite.log RewriteLogLevel 9 RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^(.*) /usr/local/apache/cgi-bin/Zope.cgi/$1 \
try: /usr/local/apache/cgi-bin/Zope.cgi$1
[e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]
Hope this helps... Bruce -- Bruce Elrick, Ph.D. Saltus Technology Consulting Group Personal: belrick@home.com IBM Certified Specialist Business: belrick@saltus.ab.ca ADSM, AIX Support, RS/6000 SP, HACMP
participants (3)
-
alan runyan -
Bruce Elrick -
Martijn Pieters