can php parse .cgi files in cgi-bin - php module

From: Blake (blake_at_shopwhatcom.com)
Date: 10/05/04


Date: 4 Oct 2004 19:02:22 -0700

I DO NOT need cgi or my cgi-bin, however due to some indexed .cgi
files in the cgi-bin indexed on a search engine.

My question: Can I build a PHP file, name it something.cgi, place it
in a directory named cgi-bin and have the Apache/PHP/Module process
the file just as it does .php and .php4 files?

I know how to tell the module to process various extensions, can i
specify .cgi or .pl and would this be a problem? How can I make the
cgi-bin directory just like any other directory in my /www folder?

Thanks for all your help!



Relevant Pages

  • Re: CGI help
    ... Douglas Seifert wrote: ... [jleggett@binford cgi-bin]$ cat classification.txt ... integrity modifier,integm,System/Application,30,Customer ... CGI all up... ...
    (comp.lang.ruby)
  • Re: Restricted CGI Execution - how to handle it?
    ... Give CGI people access to their cgi-bin. ... > Deny access for non-CGI people. ... ScriptAliases suffice to grant CGI execution rights? ...
    (comp.security.unix)
  • Re: Help with Net::ftp not downloading
    ... You are executing this script as a CGI on your ... except that I created a 'C' folder both above and below the ... one above cgi-bin and one a subdirectory of cgi-bin. ... That would require you to be running an FTP server on your local ...
    (comp.lang.perl.misc)
  • Re: Best practices? Organizing CGI code and modules?
    ... organization of the CGI directory. ... directories here, no user-built modules, and perl files ... First, regarding the cgi-bin directory, this should be *outside* your ... Next all files that are not cgi scripts *shouldn't* be in this directory. ...
    (comp.lang.perl.misc)