[Zope] (no subject)

Jay, Dylan djay@lucent.com
Mon, 10 May 1999 19:06:19 +1000


I'm having extreme trouble getting the rules to work under NT4.0 with Apache
1.3.6. I've used all of this below and can't even get the first page up let
alone authentication working. I believe my rewrite rules are working but
something else is not as my error.log keeps reporting.

[Mon May 10 18:50:46 1999] [error] [client 135.254.74.181] Options ExecCGI
is off in this directory: /apache/cgi-bin/provision.exe

I used the debugging info on rewrite module to get the following

135.254.74.181 - - [10/May/1999:18:21:51 +1000]
[provision.auslabs.lucent.com/sid#7c6db8][rid#97b9f8/initial] (2) init
rewrite engine with requested uri /Zope/
135.254.74.181 - - [10/May/1999:18:21:51 +1000]
[provision.auslabs.lucent.com/sid#7c6db8][rid#97b9f8/initial] (3) applying
pattern '^/Zope/(.*)' to uri '/Zope/'
135.254.74.181 - - [10/May/1999:18:21:51 +1000]
[provision.auslabs.lucent.com/sid#7c6db8][rid#97b9f8/initial] (4)
RewriteCond: input='' pattern='^(.*)' => matched
135.254.74.181 - - [10/May/1999:18:21:51 +1000]
[provision.auslabs.lucent.com/sid#7c6db8][rid#97b9f8/initial] (2) rewrite
/Zope/ -> /Apache/cgi-bin/Provision.exe
135.254.74.181 - - [10/May/1999:18:21:51 +1000]
[provision.auslabs.lucent.com/sid#7c6db8][rid#97b9f8/initial] (5) setting
env variable 'HTTP_CGI_AUTHORIZATION' to ''
135.254.74.181 - - [10/May/1999:18:21:51 +1000]
[provision.auslabs.lucent.com/sid#7c6db8][rid#97b9f8/initial] (2) remember
/Apache/cgi-bin/Provision.exe to have MIME-type 'application/x-httpd-cgi'

My http.conf has the following.


<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

<Directory "C:/Apache/htdocs">

#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
    Options Indexes FollowSymLinks ExecCGI

#
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo", 
# "AuthConfig", and "Limit"
#
    AllowOverride None

#
# Controls who can get stuff from this server.
#
    Order allow,deny
    Allow from all
</Directory>

#
# UserDir: The name of the directory which is appended onto a user's home
# directory if a ~user request is received.
#
# Under Win32, we do not currently try to determine the home directory of
# a Windows login, so a format such as that below needs to be used.  See
# the UserDir documentation for details.
#
UserDir "C:/Apache/users/"

ScriptAlias /cgi-bin "C:/Apache/cgi-bin"

#
# "C:/Apache/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "C:/Apache/cgi-bin">
    AllowOverride None
    Options All
</Directory>

LoadModule rewrite_module modules/ApacheModuleRewrite.dll


RewriteEngine on
RewriteLog logs/rewrite.log
RewriteLogLevel 9
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^/Zope(/.*) /Apache/cgi-bin$1
[E=HTTP_CGI_AUTHORIZATION:%1,T=application/x-httpd-cgi,L]

<Directory /Zope> 
    Options All 
    AllowOverride None 
</Directory> 
<Directory /apache/cgi-bin/provision.exe> 
    Options All 
    AllowOverride None 
</Directory> 


Amoung other things.

I'm at the end of my teather. I've tried everything I can think of and
always I get a 403 error. What am I doing wrong?


>I don' t know if this will help much but I have version 1.3.4 working. The
Zope install is named >George so,
>
>
>RewriteEngine on 
>RewriteCond %{HTTP:Authorization}  ^(.*) RewriteRule ^/Zope/(.*)
/Apache/cgi-bin/George.exe/$1
[E=HTTP_CGI_AUTHORIZATION:%1,T=application/x-httpd-cgi,L]
>
>
>This doesn't seem much different from yours but I also had to append:
>
>
><Directory /Zope> 
>
>    Options All 
>    AllowOverride None </Directory> 
><Directory /apache/cgi-bin/george.exe> 
>    Options All 
>    AllowOverride None </Directory> 
>
>
>
>before I could get it to work. Only adding ExecCGI option still gave me 403
and authorization >errors.  Options All seems a bit extreme, but I didn't
feel like messing with it a whole lot at >the time...
>
>
>BTW this is on NTWS 4.0. 
>[My other machine runs Linux  :^)   ]
>
>
>HTH, 
>John Jarvis
>
>
>
> -----Original Message-----
> From:	Rob Page [SMTP:rob.pag-@digicool.com]
> Sent:	Wednesday, April 14, 1999 8:21 AM
> To:	'zop-@zope.org'
> Subject:	[Zope] Zope with Apache on NT
> 
> Has anyone gotten Zope 1.10.2 to work with the windows version of Apache
> (1.3.6)?  I've checked, double-checked and triple-checked the notorious
> rewrite rule:
> 
> <httpd.conf snippet>
> LoadModule rewrite_module modules/ApacheModuleRewrite.dll
> #
> #
> RewriteEngine On
> RewriteCond %{HTTP:Authorization}  ^(.*)
> RewriteRule ^/Zope/(.*) /PROGRA~1/APACHE~1/cgi-bin/Zope1-10-2.exe/$1
> [last,e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]
> </httpd.conf snippet>
> 
> so on:
> 
> http://localhost/Zope/manage or
> http://localhost/Zope/anything-else-for-that-matter
> 
> I just get Error 403 Forbidden messages.
> 
> waaaaahhh... it's late and I'm getting cranky...  snivel...
> 
> :^)
> 
> --Rob
> 
> --
> Rob Page                  V: 540 371 6909         
> Digital Creations
> http://www.digicool.com 
> 
> _______________________________________________
> Zope maillist  -  zop-@zope.org
> http://www.zope.org/mailman/listinfo/zope
> 
> (For developer-specific issues, use the companion list,
> zope-de-@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )

_______________________________________________