1. Action directive won't run cgi in non ScriptAlias'ed dir?
I have a CGI script, call it foo.cgi, which I want to run on all .html
documents I serve.
I have in my .htaccess this to cause it to do this:
Action text/html ~wes/foo.cgi
However, if you attempt to retrieve any .html document, say
http://hostname/~wes/bar.html, it returns a 403 Bad Request.
I know the CGI script is set up correctly; you can call it manually,
such as http://hostname/~wes/foo.cgi/~wes/bar.html, and it will
Now here's the weird part--if I move foo.cgi to the directory I have
ScriptAlias'ed as /cgi-bin/, and change the .htaccess line to
Action text/html /cgi-bin/foo.cgi
it works likes it's supposed to.
This leads me to believe that Action will only call a CGI script that
is in a ScriptAlias'ed directory. I have not been able to find any
reference to this behavior in the documentation, so I'm not sure if
this is a bug, or an undocumented, poorly thought-out "feature".
Now, a second "bug" observation while I'm at it. If you have a
ScriptAlias'ed cgi-bin directory and set it to "Options None" (for
no good reason), CGI scripts will still run from the directory.
Again, undocumented behavior as far as I can tell.
Both of these phenomena have been observed under both 1.3b6 on
FreeBSD and 1.2.4 on Linux (Red Hat 5).
Any comments? Email too, please--my newsfeed is not convenient and
this group has a lot of traffic. If I don't get anything conclusive
in a few days, I'm going to go ahead and submit bug reports to the
Apache dev team.
"Assembly language optimization is a small but crucial corner of the PC
programming world. Use it sparingly and only within the framework of a
good design--but ignore it and you may find various portions of your
anatomy out in the cold." -- Mike Abrash
2. Linux Memory Problem
3. Running ddd 1.4d
4. WTH Does This Mean? (Trouble Getting X Started)
5. Why won't NCSA run my CGI's?
6. Ftape - tape capacity
7. LD'ed executable won't run?
8. named - too many open files - exiting
9. Apache-SSL CGI's won't run
10. X won't run - can't communicate with server?
11. Running ddd 1.4d
12. Slackware '96 - Syslogd won't run, craps out with a core dump...
13. Running ddd 1.4d