Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help please cgi bin????

Status
Not open for further replies.

MrLumpy99

Technical User
Jan 9, 2003
1
US
I have been running apache 1.3 on open bsd 4 with no problems except I cant figure out how to run any cgi scripts I always get "You don't have permission to access /cgi-bin/ on this server" I have checked all the permissions that I know of and still doesnt work can any one give me some instructions or help on this thanks
 
Even if you have all the permissions set in your file structure, you still need to to make cgi-bin accesible to the webserver. In your httpd.conf you should have the following directive:

ScriptAlias /cgi-bin/ "/your/path/to/cgi-bin/"

This directive does two things. First it tells apache to treat everything in that directory as a script. second, it makes your cgi-bin look like it is under your DocumentRoot (html directory), i.e. is what browsers will see. If you creat a directory container for it, you can use directives to tell apache who can do what in that directory or else "Options All" will be assumed along with NO restrictions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top