Re: [Apache] .htaccess ignored???

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

 



On Sat, 2006-11-04 at 10:58 -0600,  wrote:
>> 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).


Erich Carlson
> 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>

And "AllowOverride None" stops .htaccess files from overriding settings
in the configuration file.  Read about the AllowOverride directive for
its options.

-- 
(Currently testing FC5, but still running FC4, if that's important.)

Don't send private replies to my address, the mailbox is ignored.
I read messages from the public lists.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux