Women in Technology

Hear us Roar



Article:
  Apache Web-Serving with Mac OS X: Part 2
Subject:   Creating Your own test.cgi file and cgi-bin
Date:   2009-12-28 11:36:11
From:   stumpygreg
I know this is an old discussion page but it is still pertinent! After much head scratching it became clear that the ScriptAlias function looks for /cgi-bin/yourfilename as part of the html supplied to it and then replaces cgi-bin with the path to CGI-Executables so it can be executed as a script. You do not need a cgi-bin directory in your file structure. If you create your own test.cgi file with textwrangler it will start out with -rw-r--r--@ permission set - clearly no ability to execute. So doing a sudo chmod 755 results in -rwxr-xr-x@ where execution is now possible,


Also recommended for apache2.2 is:


Options Indexes FollowSymLinks MultiViews +IncludesNoExec


Greg

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Creating Your own test.cgi file and cgi-bin
    2010-06-30 06:25:57  peter55 [View]

    Despite the fact that this discussion is a little bit old, but it is still useful for me. I am a web developer so I always try to find more information about this sphere. Reading this entry I have known so many new things, which I have not known before about web development (http://www.azoft.com/) . Thanks for publishing this article here, without you I would never known about such a thing ever. Regards.