LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-23-2004, 01:04 PM   #1
gepesz
LQ Newbie
 
Registered: Jun 2004
Location: Washington DC, US
Distribution: Debian, Kubuntu
Posts: 23

Rep: Reputation: 15
How to enable directory browsing inside public_html?


Hello,

I'm trying to setup user home pages on my server. I have apache2 as the webserver. I added "UserDir public_html" to my apache2 config file and I can see the contents of public_html (index.html) just fine.

My problem now is that I want to add a directory inside public_html that I want to be able to browse. For example, say I want to be able to browse the localhost/~joe/photos/ folder. The question is, what do I need to do to be able to browse the contents of 'photos' in a web browser?

Note that I'm looking for a general solution, ie any directory under public_html should be browsable (not just this specific one).
 
Old 07-23-2004, 04:11 PM   #2
prissed
LQ Newbie
 
Registered: Jul 2004
Location: McKinney, TX
Distribution: MDK 10/KDE 3.2
Posts: 21

Rep: Reputation: 15
Prolly just need to turn Indexes on in your httpd.conf file:

Code:
<Directory /path/to/your/dir>
Options Indexes
</Directory>
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
xmms directory browsing doralsoral Linux - Software 1 10-24-2005 07:51 PM
gnome directory browsing surgey Linux - Newbie 2 05-10-2005 07:12 PM
apache unable to access /home/*/public_html directory cavemanf16 Linux - Software 6 07-08-2004 05:43 AM
X stalls when browsing directory djcomplex Linux - Software 0 01-15-2004 06:46 AM
can i set ~/public_html/perl as a perl directory for apache? doublefailure Linux - Networking 1 07-09-2002 04:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration