Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 03-16-2004, 02:17 AM   #1
Registered: Feb 2004
Posts: 50

Rep: Reputation: 15

When I typed and there is no index.html, internet browser shows all the files in there. Is there a way to disable this? Been reading the docs, no luck (maybe I missed it).

Old 03-16-2004, 04:10 AM   #2
Registered: Oct 2003
Location: USA Fresno Callifornia
Distribution: Gentoo (workstation), ArchLinux (file/mail server), Freebsd (web server), Ubuntu (laptop)
Posts: 115

Rep: Reputation: 16
Why wouldn't you just have an index.html?
Old 03-16-2004, 04:11 AM   #3
Registered: Feb 2004
Posts: 50

Original Poster
Rep: Reputation: 15
Because there are other folders in the same directory. Which means if they type the folder, they will be able to see whatever in that folder (Or do you suggest having index.html in every folder?)

Old 03-16-2004, 05:56 AM   #4
LQ Newbie
Registered: Mar 2003
Location: Denmark
Distribution: Slackware and Gentoo
Posts: 20

Rep: Reputation: 0
You can use the DirectoryIndex directive to specify default files (such as index.html).

To get rid of the directory listings when apache cannot find a default file, you have to look for something like "Options Indexes [other_options]" in the httpd.conf file. Typically this resides within a Directory directive.
You can safely remove the "Indexes" option-keyword, and after restarting apache, the webserver should return an error to the browser in stead of the listing.

Old 03-16-2004, 06:02 AM   #5
Registered: Feb 2004
Posts: 50

Original Poster
Rep: Reputation: 15
Bingo!! Thanks for that, it works!


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
Mail from Apache being rejected - Cannot route to sender apache@localhost.localdomain jimwillsher Linux - Networking 2 01-19-2006 01:41 AM
Apache 1.3.33 (debian built) and Apache SSL does not respond to the proper ports lqorg_user Linux - Networking 0 11-06-2005 05:11 PM
Strange apache trailing / problem - Slack-current, apache 1.3.33 vamp Linux - Networking 1 01-30-2005 08:28 PM
Apache Webserver 403 Forbidden Errors (User not in apache group?) Mankind75 Mandriva 4 07-08-2004 06:30 AM
apache benchmarks (apache v13 / apache v20) ; large differences between benchmarking markus1982 Linux - Software 0 02-08-2003 11:53 AM > Forums > Linux Forums > Linux - Software

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

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