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.
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.
im trying to setup a small server, and I want to host some files so people can just look straight into the folder and get what they want, but when I try to go to the folder (mysite.com/files) it tells me forbidden. I checked the permissions and it seems like it should work.
Im using the graphical version on RedHat 9 if Apache, how can I make directory listing work?
Originally posted by mattbeekler but if I edit the httpd.conf the graphical interface overwrites it i believe.
i guess i could not use the graphical interface im just a little lazy.
That is a choice that you'll have to make. There are some advantages to directly modifying the conf file. For starters, you become familiar with how Apache works and what it is capable of doing. As you start doing more advanced things with Apache, you may find that your GUI admin tool simple doesn't have a way to configure what you want. Remote admin for a production server becomes incredibly less complex. Also, in most cases, the conf file is going to be the same across distros.
As far as the directory browsing goes, look in the conf file for Indexes in the Options line. If you don't see it in there, you may want to add it in for the appropriate directories.
Directory browsing is what happens when you don't have an index.html
file in a directory. The server returns a list of all files in the
directory. Usually this is on by default, but not if you add Virtual
Servers or otherwise mess with the httpd.conf file. To turn it on,
open httpd.conf and go to the tag for your directory: