www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kohji Nakamura" <nakam...@duo.co.jp>
Subject Re: mod_cgi/10138: CGI program is not invoked when a trailing '/' is provided to the CGI-script's URL.
Date Wed, 13 Mar 2002 03:40:01 GMT
The following reply was made to PR mod_cgi/10138; it has been noted by GNATS.

From: "Kohji Nakamura" <nakamura@duo.co.jp>
To: <trawick@apache.org>
Cc: <apache-bugdb@apache.org>,
	<apbugs@Apache.Org>
Subject: Re: mod_cgi/10138: CGI program is not invoked when a trailing '/' is provided to
the CGI-script's URL.
Date: Wed, 13 Mar 2002 12:40:40 +0900

 Thank you for your quick response.
 
 I found the reason of the problem. 'Options FollowSymLinks' directive is the
 one.
 
 I had a following configuration and failed.
 
 <Directory "/opt/httpd-2.0.32/cgi-bin">
     AllowOverride None
     Options FollowSymLinks       # <- reason of the problem
 #    Options None
 
 After I changed back to 'None' option,  an access to 'printenv/' successed.
 
 <Directory "/opt/httpd-2.0.32/cgi-bin">
     AllowOverride None
     Options None       # <- This will work
 
 Is this your expected behaviour?
 
 Anyway I tried to run truss and following is the result grep-ed with
 'printenv'.
 
 27201:  stat("/opt/httpd-2.0.32/cgi-bin/printenv/", 0xFFBEF4E8) = 0
 27203:  chdir("/opt/httpd-2.0.32/cgi-bin/printenv/")    Err#20 ENOTDIR
 
 Httpd didn't exec 'printenv/' as you pointed.
 
 I also put here outputs of 'diff httpd-std.conf httpd.conf' when I got the
 error.
 
 251c251
 < Group #-1
 ---
 > Group nogroup
 260c260
 < ServerAdmin you@your.address
 ---
 > ServerAdmin nakamura@duo.co.jp
 274c274
 < #ServerName new.host.name:80
 ---
 > ServerName olive.i.duo.co.jp:80
 546a547,556
 >     Options FollowSymLinks
 > #Options None
 >     Order allow,deny
 >     Allow from all
 > </Directory>
 >
 > ScriptAlias /viewcvs/cgi-bin/ "/opt/viewcvs/cgi/"
 >
 > <Directory "/opt/viewcvs/cgi">
 >     AllowOverride None
 547a558
 >     Options FollowSymLinks
 
 Thanks.
 
 
 

Mime
View raw message