LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-16-2004, 01:17 AM   #1
bulzbb
Member
 
Registered: Feb 2004
Posts: 50

Rep: Reputation: 15
Apache..


When I typed www.mydomain.com/ 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).

Thanks.
 
Old 03-16-2004, 03:10 AM   #2
hypexr
Member
 
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, 03:11 AM   #3
bulzbb
Member
 
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?)

Thanks.
 
Old 03-16-2004, 04:56 AM   #4
larstj
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.

Regards.
 
Old 03-16-2004, 05:02 AM   #5
bulzbb
Member
 
Registered: Feb 2004
Posts: 50

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


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


All times are GMT -5. The time now is 10:22 PM.

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