Sneha,
On Tue, 2004-04-20 at 23:35 -0700, Sneha Thakkar wrote:
<snipped>
> I could configure it so that http://localhost fetches
> /var/www/html/index.html.
> I now want to configure it so that
> http://localhost/cgi-bin/file.cgi *executes*
>
> /var/www/html/file.cgi..I get a "403 Forbidden" error.
Strictly going by what you posted, let me point out that your CGI script
file.cgi should be placed under the /var/www/cgi-bin directory and *not*
under /var/www/html as you have mentioned in your post.
relocate the file, ensure correct file permissions to try again. Let us
know if you still face a problem. For your reference, I am attaching the
relevant section from httpd.conf that deals with CGI scripts:
> # ScriptAlias: This controls which directories contain server scripts.
> # ScriptAliases are essentially the same as Aliases, except that
> # documents in the realname directory are treated as applications and
> # run by the server when requested rather than as documents sent to the client.
> # The same rules about trailing "/" apply to ScriptAlias directives as to
> # Alias.
> #
> ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
>
> #
> # "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
> # CGI directory exists, if you have that configured.
> #
> <Directory "/var/www/cgi-bin">
> AllowOverride None
> Options None
> Order allow,deny
> Allow from all
> </Directory>
hth,
--indra.
> Regards
> Sneha.
--
To unsubscribe, send mail to [EMAIL PROTECTED] with the body
"unsubscribe ilug-cal" and an empty subject line.
FAQ: http://www.ilug-cal.org/node.php?id=3