httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "--[ UxBoD ]--" <>
Subject [users@httpd] Password Protection Ignored
Date Sat, 22 Jan 2011 12:45:26 GMT

I have a reports directory I wish to secure and have created the necessary .htaccess file:

AuthUserFile /www/security/somedomain_access
AuthType Basic
AuthName "Restricted Access"
Require user someuser

I believe my virtual host config is correct:

<VirtualHost *:80>
    DocumentRoot "/www/"
    <Directory /www/>
        AllowOverride All


    ExpiresActive On
    ExpiresByType text/html "access plus 30 seconds"
    ExpiresByType text/css "access plus 2 weeks"
    ExpiresByType text/javascript "access plus 2 weeks"
    ExpiresByType image/png "access plus 1 month"
    ExpiresByType image/gif "access plus 1 month"
    ExpiresByType image/jpg "access plus 1 month"

    AddOutputFilterByType DEFLATE text/html text/css text/xml application/x-javascript application/javascript

    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4\.0[678] no-gzip
    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

    DeflateCompressionLevel 6

    Header append Vary User-Agent

    ErrorLog "logs/"
    CustomLog "logs/" common

Though when I navigate to I am never prompted
for a user/password :( If I add some random text to .htaccess then I do receive a Server Error
so the file is being processed.  Thoughts please ?
Thanks, Phil

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message