| zupperman@gmail.com 2005-08-29, 7:50 am |
| Hi ti everybody.
I had the need to make apache to manage the cgi-dir in not a standard
way: ie to run cgi but serve also document files (html, jpg and so on).
So when one... try to get www.server.com/cgi-bin/file.gif he gets the
image and the server doesn't try to execute it.
I made it changing the scriptalias directive into alias like this:
Alias /cgi-bin/ "/Library/WebServer/Documents/cgi-bin/"
<Directory "/Library/WebServer/Documents/cgi-bin">
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
</Directory>
and hadding 2 handlers for the .pl and .cgi file.
Alla works well but when I try to execute something in a subdir of
cgi-bin I get a "Premature end of file header" (apache log file).
I've tried to copy a file from the cgi-dir to the cgi-dir/subdir in
order to be sure that I've not done any mistake.
Rights are correct.
I have not idea why the cgi runs only in the cgi-dir and not in the
subfolders of that dir.
Any idea?
I'm becoming crazy on that.
Thanks
Zuppy
|