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

Bug#315847: .htaccess is ignored



Package: apache2
Version: 2.0.54-4
Severity: grave


I just upgraded from my self compiled apache1 to Debians apache2. Now .htaccess directives are ignored.


my sites-available/default:

NameVirtualHost *
<VirtualHost *>
        ServerAdmin webmaster@localhost

        DocumentRoot /var/www/
        <Directory />
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
        </Directory>
        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

	AccessFileName .htaccess
        <Directory /logs>
                Options none
                AllowOverride AuthConfig
        </Directory>

        ErrorLog /var/log/apache2/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog /var/log/apache2/access.log combined
        ServerSignature On

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>


But if I browse to http://[ip address]/logs, I am not asked for a password. apache1 worked fine. Of course I have a .htaccess file in /var/www/logs:

AuthUserFile /etc/httpd/htpasswd
AuthName Logs
AuthType Basic
<Limit GET>
require user olaf
</Limit>

I even re-created /etc/httpd/htpasswd. "apache2ctl -l" says:

Compiled in modules:
  core.c
  mod_access.c
  mod_auth.c
  mod_log_config.c
  mod_logio.c
  mod_env.c
  mod_setenvif.c
  prefork.c
  http_core.c
  mod_mime.c
  mod_status.c
  mod_autoindex.c
  mod_negotiation.c
  mod_dir.c
  mod_alias.c
  mod_so.c



Reply to: