Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PATH_INFO not (always) working in CGIs

Status
Not open for further replies.

Makoto

Programmer
Jul 2, 2001
2
US
When I try to bring up http://[myhost]/cgi-bin/printenv/foo/bar/baz I get a 403 Forbidden error. The Apache error log shows

(21)Is a directory: access to /cgi-bin/printenv/foo/bar/baz failed

Basically, instead of invoking printenv with a PATH_INFO of /foo/bar/baz, Apache is trying to interpret the path as a directory and of course finds nothing there.

But if I bring up /cgi-bin/printenv, something "wakes up" and remembers that printenv is a CGI. After that, invoking it with a path works -- for a while. Then it forgets, and I have to repeat the "wake up" procedure.

Of course I'm not interested in printenv. The problem is that I have a bunch of CGIs which depend on getting PATH_INFO.

This is with Apache 1.3.20 on Mac OS X 10.0.4.
 
I'd be grateful if other folks with Mac OS X would try this on their own machines to see if this is specific to my set-up or a more general problem. Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top