Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 221
  • Last Modified:

list the file in directory

How can I list a file on the directory  
0
teera
Asked:
teera
  • 2
  • 2
1 Solution
 
ravenplCommented:
Don't pu index.* file there. If not enought, create
.htaccess
file add following content
Options +Indexes
if it still does not wok, You have to add this into httpd.conf in proper <Directory ??>
AllowOverride +Indexes
0
 
teeraAuthor Commented:
Hi ravenpl

I am not understand what you mean please exolain more
0
 
ravenplCommented:
in that directory
1. if You have file called index.html index.php or whatever matches index.* - remove
2. if no such file, and no listing, create file called .htaccess with following content
Options +Indexes
3. if still no luck - You have to edit httpd.conf apache configuration file and allow Indexing in that dir
 You can either find existing <Directory ???> entry which matched the dir, or create new with content
<Directory /path/to/desired/dir>
 AllowOverride +Indexes
</Director>
 then reload apache server.

If You merly user which want to see files on some public webpage - go ask the webmaster for the above.
0
 
teeraAuthor Commented:
Thank you very much
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now