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

RE: [cobalt-users] disabling index browsing on a site



> Is there a way to shut off directory browsing from the browser? I have
> a customer who is concerned about this and I can't find anything on the
> knowledge base.
>
The Correct way to do this in apache's config file is:

Options -Indexes

Looks like this in the container:
[note, this is not from a RaQ, so YMMV on the other settings]

<VirtualHost 192.168.1.2>
    ServerName example.com
    ServerAdmin webmaster@xxxxxxxxxxx
    ServerAlias laiben.com www.example.com
    DocumentRoot /var/www/www/www.example.com
    <Directory /var/www/www/www.example.com>
        Options -Indexes FollowSymLinks MultiViews ExecCGI Includes
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    Options +Includes
    TransferLog /var/www/www/www.example.com/statistics/access_log.current
</VirtualHost>

--
Chris Demain                                     cdemain@xxxxxxxxxxx
Systems Administrator                           (813) 839-7242 x3022
Sago Networks                              <http://www.sagonet.com/>
--
"The world is a very strange carrot, but the farmer is not worried at all"