so you have a server which root directory is /foo
you have a directory /foo/bar for which you want apache to display the
result of a script as a directory listing
this script is INDEX.CGI and it is in /foo/bar
of course /foo/bar/INDEX.CGI has its execute bit set
you don't have to deal with scriptalias in this cas, because your script
isn't in a special "cgi-bin" directory
instead you have to allow ".CGI" extension files to be executed as such,
the easiest way being to add an "option execcgi" in the ".htaccess" file
within /foo/bar. but don't forget to check apache's config file to mark
.CGI files as cgi executables : by default, only ".cgi" are defined this
way. maybe it would be clever at this time to rename your script
"index.cgi" in all lowercase letters.
from an out-of-thez-box apache install, i'd simply :
- create the "index.cgi" script, lowercase, chmod a+x, in /foo/bar
- create update the ".htaccess" to add "Options ExecCGI" in /foo/bar
- likely update it to add "DirectoryIndex index.cgi"
this ought to be enough
then http://your.server/bar/ should display /foo/bar/index.cgi 's output
hth
A 17:23 03/05/01 +0430, vous avez écrit :
>I did this directive in the location directive . I think we can use location
>instead directory because I point to the correct location with scriptalias
>and alias but I didn't work.
>
>Alireza
>----- Original Message -----
>From: "Anthony E . Greene" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Friday, May 04, 2001 1:46 AM
>Subject: Re: Apache INDEX.CGI
>
>
>> On Thu, 03 May 2001 06:57:53 Alireza Saleh wrote:
>> >>
>> >> Did you also add the cgi directory to your ScriptAlias directive:
>> >>
>> >> ScriptAlias /path/to/cgi
>> >>
>> >>
>> >> Tony
>> >
>> >Dear Tony ,
>> >I did add it but it doesn't work also . emm I add as alias and script
>alias
>> >but both didn't worked.
>> >Alireza
>>
>> In the httpd.conf file, add "ExecCGI" to the "Options" directive for the
>> directory tht contain INDEX.CGI. You should also think about using all
>> lowercase for your filenames if possible (index.cgi not INDEX.CGI).
>>
>> Tony
>> --
>> Anthony E. Greene <[EMAIL PROTECTED]> <http://www.pobox.com/~agreene/>
>> PGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26 C484 A42A 60DD 6C94 239D
>> Chat: AOL/Yahoo: TonyG05 ICQ: 91183266
>> Linux. The choice of a GNU Generation. <http://www.linux.org/>
>>
>>
>>
>> _______________________________________________
>> Redhat-list mailing list
>> [EMAIL PROTECTED]
>> https://listman.redhat.com/mailman/listinfo/redhat-list
>
>
>
>_______________________________________________
>Redhat-list mailing list
>[EMAIL PROTECTED]
>https://listman.redhat.com/mailman/listinfo/redhat-list
>
>
- * - * - * - * - * - * -
Mes idees n'engagent que moi (vieux proverbe du Net)
Thierry ITTY
eMail: [EMAIL PROTECTED] FRANCE
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list