Re: Apache2 hidden files & folders

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

 



Thanks your answer!

I know not recommended. htaccess files source code is only my
localhost (not internet, only local).

This not work, not listing dot files: IndexIgnore *~ *# HEADER*
README* RCS CVS *,v *,t

My /etc/apache2/sites-available/localhost file is:

<VirtualHost *:80>

    ServerName localhost
    ServerAlias *.localhost
    DocumentRoot /var/www/
    AddDefaultCharset UTF-8
    # IndexIgnore *

    ErrorLog /var/www/.error
    CustomLog /var/log/apache2/localhost combined

    HostnameLookups Off
    UseCanonicalName Off
    ServerSignature Off

    <Directory "/var/www/">

        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all

    </Directory>

</VirtualHost>

2013/9/24 Pete Houston <ph1@xxxxxxxxxxxxxxxx>:
> On Tue, Sep 24, 2013 at 06:21:23PM +0200, Sós Dániel wrote:
>> IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
>
> The first term there will prohibit display of your dotfiles. Try
> removing it and use this instead:
>
>         IndexIgnore *~ *# HEADER* README* RCS CVS *,v *,t
>
> Also, be very careful with this:
>
>> <Files .htaccess>
>>     order allow,deny
>>     allow from all
>> </Files>
>
> That is not recommended.
>
> Good luck,
>
> Pete
> --
> Openstrike - improving business through open source
> http://www.openstrike.co.uk/ or call 01722 770036 / 07092 020107

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx






[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux