9

In CentOS 6.0, i have apache for allowing to download drivers + one README.TXT file. But when the site is visited as http://site.mooo.com/ it shows all zip files but not the TXT file.

<VirtualHost *:80>
 ServerName site.mooo.com
 ServerAlias site.mooo.com
 DocumentRoot /var/www/html/download
 <Directory /var/www/html/download>
        DirectoryIndex index.php
        AllowOverride All
        Order allow,deny
        Allow from all
 </Directory>
</VirtualHost>

Should show all, but only shows two zip file

/var/www/html/download/
driver.zip
driver.new.zip
README.TXT

2 Answers2

33

I know it's old, but for what it's worth :

  • Edit your httpd.conf file
  • Locate the line with the IndexIgnore directive
  • Remove README* from that pattern

=> It will display the README.txt files.

Stephan
  • 41,764
  • 65
  • 238
  • 329
brav0charlie
  • 431
  • 4
  • 4
-2

create a .htaccess, try Options +Indexes

Lynob
  • 5,059
  • 15
  • 64
  • 114
  • Why does it only exclude README files? – Chris Quenelle Mar 23 '12 at 03:37
  • add `Options +Indexes` in the .htaccess file does not make it visible. – vee Jul 10 '19 at 02:04
  • @vee This is 8 years ago, I forgot what the question was and what my answer was. My answer was accepted, I must've said something that solved the problem of the OP, that's all that matters, helping OP, that reason alone should make my answer immune from downvotes. it was the only answer for a year and it was accepted, it means I helped someone when he needed help, not after a year from needing help. – Lynob Jul 10 '19 at 15:36