Web Hosting Talk







View Full Version : Configuring CGI-BIN directory


Franki
03-21-2002, 01:32 PM
Hello guys. I have a site which has a cgi-bin directory but everything inside it is viewable? What do I have to add (I think in /etc/httpd/conf/access.conf) to change it? I want to forbide all the sud-directories (and the files are inside) to be viewable, but of course I want the .cgi & .pl files to be executable! Could someone help me please?

jambler
03-21-2002, 01:55 PM
have you bothered with chmod & chown?

blacknight
03-21-2002, 06:18 PM
Originally posted by Franki
Hello guys. I have a site which has a cgi-bin directory but everything inside it is viewable? What do I have to add (I think in /etc/httpd/conf/access.conf) to change it? I want to forbide all the sud-directories (and the files are inside) to be viewable, but of course I want the .cgi & .pl files to be executable! Could someone help me please?
I asked the same question about a week ago. If you do a search on 'directory browsing' you'll probably turn something up.

Chicken
03-21-2002, 09:43 PM
For just that directory, you can upload a text file named .htaccess that contains the line:

Options -Indexes

(..which is just one of a few different ways of accomplishing what you want)