ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Apache Web-Serving with Mac OS X: Part 2
Subject:   CGI - ScriptAliasMatch
Date:   2002-03-11 13:00:22
From:   kenyatta
I was trying to figure out how to allow all my users /cgi-bin/ directories to permit cgi scripts. I came across the ScriptAliasMatch directive from the apache website.
There was a small tutorial that used pattern matching to catch /Users/(any user)/Sites/cgi-bin/(any script) I tested the printenv and test-cgi scripts from the /Library/WebServer/CGI-Executables/


-- the printenv script worked
-- but the test-cgi script gave me an Internal Server Error.
I checked the error_log, it said
"malformed header from script. Bad header=bootstrap_look_up() failed"


-- Anybody got a clue ?
I know that the printenv is a perl script, and test-cgi is a tcsh script, and all the permissions are fine.
-- I got the same error on a networked computer with 2 different users (1 is an administrator -although I doubt that matters)



----------------------------
ScriptAliasMatch ^/~([^/]*)/cgi-bin/(.*) /Users/$1/Sites/cgi-bin/$2
<Directory /Users/*/Sites/cgi-bin/>
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>



1 to 1 of 1
  1. Kevin Hemenway photo CGI - ScriptAliasMatch
    2002-03-11 17:05:32  Kevin Hemenway | O'Reilly AuthorO'Reilly Blogger [View]

    • CGI - ScriptAliasMatch (THANKS!!)
      2002-03-11 17:24:41  kenyatta [View]

1 to 1 of 1