httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sós Dániel <sosda...@gmail.com>
Subject Re: [users@httpd] Apache2 hidden files & folders
Date Tue, 24 Sep 2013 16:39:09 GMT
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@openstrike.co.uk>:
> 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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message