LinuxQuestions.org
Help answer threads with 0 replies.
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 08-09-2006, 04:59 PM   #1
sneakyimp
Member
 
Registered: Dec 2004
Posts: 795

Rep: Reputation: 50
apache listing directory contents


if i go to http://mysite.com/folder

then apache is listing all the files in 'folder'. i'm sure this must be a php ini setting or some similar. how do I change it? it would probably be useful to know that i don't have access to the apache conf file as it's on a shared hosting server.
 
Old 08-10-2006, 12:08 PM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,907

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
If the server is configured to allow the use of .htaccess, you can create a file .htaccess containing:
Code:
Options -Indexes
and upload it to the folder you want to hide it's contents.
Else create and upload an empty index.html (or index.php) file to that folder.
 
  


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
Apache FancyIndex listing widgets to view archive contents acid_kewpie Linux - Software 0 07-04-2006 03:20 AM
list contents of directory without listing contents baddah Linux - Newbie 2 06-12-2006 04:02 AM
Apache Directory Listing Of NFS Mount, cannot view directory list via apache luqmana Linux - Networking 2 12-19-2005 06:03 AM
Directory Listing with apache aroop Linux - Networking 2 06-02-2004 02:50 AM
apache 2 directory listing jwatco2001 Linux - Software 5 06-07-2003 06:29 PM


All times are GMT -5. The time now is 12:14 AM.

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