Hi Kingsly

Thank you.
I have tried as you suggested.
But it is not working.
When i try to access CGI files it is asking for download instead of
executing it.
I need to put both cgi,html files in one directory ("bugs" in this case)
CGI files are working fine in CGI_BIN directory.
My configuration is

Alias /bugs/ "/var/www/bugs/"
<Directory "/var/www/bugs">
    AllowOverride None
    Options Indexes Includes FollowSymLinks ExecCGI
    Order allow,deny
    Allow from all
</Directory>

RameshA


>  |
>  |Add the following line to srm.conf:
>
> srm.conf has been deprecated for quite some time now.. though the file
> still exists all the config directives are now in httpd.conf
>
> [kingsly@utopia kingsly]$ grep srm.conf /etc/httpd/conf/httpd.conf
> # /usr/conf/srm.conf and then /usr/conf/access.conf
> # srm.conf, and access.conf in that order.  The latter two files are
> #ResourceConfig conf/srm.conf
> [kingsly@utopia kingsly]$
>
> so srm.conf is not even read!!
>
>  |AddHandler cgi-script .cgi
>  |
>  |This tells your Apache server that anything ending in a .cgi (EVEN
>  |inside a directory containing HTML files) is to be treated as a CGI
>  |script and executed.
>
> Nope... all it tells is that anything ending in .cgi is a cgi-script and
> the server executes cgi-script type files rather then sending them as-is.
>
> But for the script to execute you need to add ExecCGI to the list of
> Options for that Directory
>
> This is the default setup and will allow only html to be served....
>
> <Directory "/var/www/html/mydomain.com">
>     Options Indexes Includes FollowSymLinks
>     AllowOverride None
>     Order allow,deny
>     Allow from all
> </Directory>
>
> This will also allow cgi execution in the same directory.
>
> <Directory "/var/www/html/mydomain.com">
>     Options Indexes Includes FollowSymLinks ExecCGI
>     AllowOverride None
>     Order allow,deny
>     Allow from all
> </Directory>
>
> And Ensure that the directory isn't ScriptAliased
>
> ScriptAliased directories will allow *ONLY* CGI's in them... even html
> files will be executed (and obviously fail to execute!!)
>
> Kingsly
>
>
>

_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to