LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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

Reply
 
Search this Thread
Old 05-25-2006, 01:28 PM   #1
GeorgeP
LQ Newbie
 
Registered: Mar 2006
Location: Romania
Distribution: Suse Linux
Posts: 4

Rep: Reputation: 0
Lightbulb showing the files in htdocs


Hello! I can't set my Apache Server to show the list of files from the htdocs directory. Can somebody help me please!
 
Old 05-25-2006, 01:56 PM   #2
jeelliso
Member
 
Registered: Oct 2005
Location: Knoxville, Tn (USA)
Distribution: OpenSUSE, Ubuntu
Posts: 250

Rep: Reputation: 30
I know you can do it in ASP with the files collection.
http://www.w3schools.com/asp/coll_files.asp

Any server side scripting language should be able to interact with the filesystem and print this information.

~Justin
 
Old 05-25-2006, 02:14 PM   #3
GeorgeP
LQ Newbie
 
Registered: Mar 2006
Location: Romania
Distribution: Suse Linux
Posts: 4

Original Poster
Rep: Reputation: 0
Thank You for your reply!
I can do this with php but Apache can do this automaticaly. On Windows this is enabled by default. I'm interested in doing this on my Suse Linux. Insted of showing this list, i get the following message: "acess forbidden".
On what I have found on the Internet by now this might be called "Indexing"

Last edited by GeorgeP; 05-25-2006 at 02:18 PM.
 
Old 05-25-2006, 02:23 PM   #4
jeelliso
Member
 
Registered: Oct 2005
Location: Knoxville, Tn (USA)
Distribution: OpenSUSE, Ubuntu
Posts: 250

Rep: Reputation: 30
Sorry, I was looking for a different kind of solution than you were looking for. I understand what you are looking for now, but unfortunantly I can't remember how to fix it. I'll take a look at my apache configs and report back if I find something. If you figure it out, please post what you find because I'd also like to know.

~Justin
 
Old 05-25-2006, 02:33 PM   #5
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Rep: Reputation: 32
There's a config file where you can set that. Formerly, that was httpd.conf, now (on my current Ubuntu system) it's apache2.conf.

In a terminal, become root.
Quote:
# locate apache2.conf
# name-of-your-texteditor path-to-apache2.conf
There, find the term "<Directory", followed by the physical path to the directory for which you'd like to enable directory browsing.
On my own system, there's an entry,
Quote:
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options Indexes SymLinksIfOwnerMatch IncludesNoExec
</Directory>
Note the option "Indexes": This one enables directory browsing.
 
Old 05-29-2006, 12:36 AM   #6
GeorgeP
LQ Newbie
 
Registered: Mar 2006
Location: Romania
Distribution: Suse Linux
Posts: 4

Original Poster
Rep: Reputation: 0
Thank you guys! You helped me alot!!! I'll try this and i'll let you know if it's really works
 
Old 05-30-2006, 12:38 AM   #7
GeorgeP
LQ Newbie
 
Registered: Mar 2006
Location: Romania
Distribution: Suse Linux
Posts: 4

Original Poster
Rep: Reputation: 0
<Directory "/srv/www/htdocs">
# Possible values for the Options directive are "None", "All",
# or any combination of:
#Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs-2.2/mod/core.html#options
# for more information.
Options none
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
AllowOverride None
# Controls who can get stuff from this server.
Order allow,deny
Allow from all
</Directory>

This is what i have found in "default-server.conf". I simply changed "Options none" with "Options All".

That's it. Thank you again, guys!

Last edited by GeorgeP; 05-30-2006 at 12:42 AM.
 
  


Reply

Tags
apache, indexing


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
VI not showing files with color RonnyNussbaum Linux - Software 8 06-26-2006 03:17 AM
FreeBSD 6.1 Showing Hidden Files RJDavison *BSD 3 05-11-2006 04:15 PM
Files not showing up on desktop z9_87 Mandriva 5 05-31-2005 08:37 PM
Files not showing up in vsftpd cjlee Linux - Networking 0 08-26-2003 05:15 PM
Files not showing up in mounted drive JCDenton Linux - Newbie 9 08-01-2003 11:17 PM


All times are GMT -5. The time now is 04:00 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration