homepage Welcome to WebmasterWorld Guest from 54.205.144.54
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
CGI Permission denied
rasheed




msg:1502964
 12:37 pm on Nov 6, 2004 (gmt 0)

I have installed Fedora 2 with Apache 2.0.49. Whenever I'm trying to run any CGI files under user home directories (ScriptAlias /cgi-bin/ "/home/cricket/public_html/cricket") I got "Forbidden". Below apache logs.

error_log :
[Sat Nov 06 15:31:55 2004] [error] [client #*$!] (13)Permission denied: access to /cgi-bin/printenv.cgi denied

access_log :
#*$!- - [06/Nov/2004:15:31:55 +0300] "GET /cgi-bin/printenv.cgi HTTP/1.1" 403 430

But if I change the ScriptAlias in httpd.conf and point to /var/www/cgi-bin and try to run the same script...it is ok.

 

jam13




msg:1502965
 9:25 am on Nov 8, 2004 (gmt 0)

ScriptAlias is normally used to map a directory that is outside your document root. I'm not sure it works for folders that are already part of your web space.

Try:

ScriptAlias /cgi-bin/ "/home/cricket/cgi-bin"

and move your cgi to:

/home/cricket/cgi-bin/printenv.cgi

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved