Linux - Software This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
07-22-2003, 02:26 PM
|
#1
|
LQ Newbie
Registered: Feb 2003
Posts: 19
Rep:
|
Directory Listing
Hi,
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?
|
|
|
07-22-2003, 02:35 PM
|
#2
|
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761
Rep:
|
Are you trying to do this via ftp or http?
|
|
|
07-22-2003, 02:37 PM
|
#3
|
LQ Newbie
Registered: Feb 2003
Posts: 19
Original Poster
Rep:
|
just http although FTP would be nice also, i am focusing on HTTP
|
|
|
07-22-2003, 02:38 PM
|
#4
|
Member
Registered: Oct 2002
Location: Havertown PA
Distribution: Ubuntu/RHEL/Fedora
Posts: 253
Rep:
|
Hi,
Though I'm not sure exactly where the "enable directory browsing" line is in the file, but I'd look in httpd.conf, which in Redhat9 is in /etc/httpd/conf/
|
|
|
07-22-2003, 02:39 PM
|
#5
|
LQ Newbie
Registered: Feb 2003
Posts: 19
Original Poster
Rep:
|
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.
Last edited by mattbeekler; 07-22-2003 at 02:41 PM.
|
|
|
07-22-2003, 02:44 PM
|
#6
|
Member
Registered: Oct 2002
Location: Havertown PA
Distribution: Ubuntu/RHEL/Fedora
Posts: 253
Rep:
|
I don't know the gui interface for httpd at all, but I imagine that it would only over-write if you made a change that would affect what you manually changed in the httpd.conf file.
I just had a quick look at my httpd.conf file (on a server I've not made any changes to) and I don't see anything about directory browsing, so there's a chance it might not be in that file anyway.
|
|
|
07-22-2003, 02:52 PM
|
#7
|
Senior Member
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552
Rep:
|
Quote:
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.
Last edited by stickman; 07-22-2003 at 02:56 PM.
|
|
|
07-22-2003, 02:56 PM
|
#8
|
Member
Registered: Oct 2002
Location: Havertown PA
Distribution: Ubuntu/RHEL/Fedora
Posts: 253
Rep:
|
You can try this (in httpd.conf):
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:
<Directory "/usr/local/apache/htdocs">
Options FollowSymLinks MultiViews
</Directory>
And ADD the word "Indexes" to the Options, like this:
<Directory "/usr/local/apache/htdocs">
Options Indexes FollowSymLinks MultiViews
</Directory>
Then save the file and restart Apache. Done.
note that the directory "/usr/local/apache..." is different in Redhat9.
Last edited by dkaplowitz; 07-22-2003 at 02:59 PM.
|
|
|
07-22-2003, 03:27 PM
|
#9
|
LQ Newbie
Registered: Feb 2003
Posts: 19
Original Poster
Rep:
|
alright, i got it, thanks for the help
|
|
|
All times are GMT -5. The time now is 11:25 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|