Re: [Apache] .htaccess ignored???

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2006-11-05 at 00:32 +0800, Deepak Shrestha wrote:
> Hi,
> 
> I had httpd running in my FC5. I guess directory listing is enabled by
> default (if no index.html, then I can see all the files inside). I
> have directory /var/www/html/links where I am currently working on.  I
> have tried the ".htaccess" file methods mentioned in web to prevent
> directory listing but I can still see all the files when I go to this
> URL (simulating no index file).
> 
> My .htaccess file contains
> =================================
> Options -Indexes (suggestion from one site)
> IndexIgnore *   (suggestion from another site)
> =================================
> 
> Can somebody guide me how to fix this? I guess it will just be small tweak.
> 
> Thanks
> 
<IfModule dir_module>
    DirectoryIndex index.html index.shtml index.pl index.cgi index.php
</IfModule>

Option -Indexes turns off the index'ing if there is no file present as
defined in DirectoryIndex above.

 <Directory "/var/www/html">

  Options -Indexes

  AllowOverride None
  Order allow,deny
  Allow from all

 </Directory>


-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux