Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Mandrake 9.2 and a couple of RH7.3 Apache servers
Posts: 153
Rep:
Apache directory listing question
What directive do I have to set in Apache2 so that when a user tries to browse a folder that has just files and no index page, they get a "forbidden" message? Like if I have a folder of pictures say www.myserver.com/pictures, I dont want it to list the folder contents. I only want to allow accesss if the user knows the specific name of a file like www.myserver.com/pictures/mypicture.jpg . It seems that it was like this by default in apache 1.3 but on my Apache2 box it will generate a directory listing instead of the "forbidden" page.
Originally posted by jini555 i would like the answer to this question as well. I need to know what options to set for the Directory directive.
In your httpd.conf file you will see something like:
Code:
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
Options Indexes FollowSymLinks MultiView
To disable Indexing, just remove Indexes after the Options listed above.
Location: New York City (I think you know this one)
Distribution: RH, ManDrake
Posts: 6
Rep:
c'mon isn't there anyone with a working solution ?
I was trying to find an answer for a whole night, if anyone out there has this working on linux box (win ans linux conf files are different) please post.
here is original version of httpd2.conf:
Code:
# First, we configure the "default" to be a very restrictive set of
# permissions.
#
# Also, for security, we disable indexes globally
#
#<Directory />
# Options -Indexes FollowSymLinks
# AllowOverride None
#</Directory>
#Restricted set of options
<Directory />
Options +All -Multiviews
AllowOverride None
<IfModule mod_access.c>
Order deny,allow
Deny from all
</IfModule>
</Directory>
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.