Re: Password Protection Ignored

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

 



----- Original Message -----
> Have you checked the Order directive?
> 
> Also I usually have the Basic authentication in a Location tag to
> ensure its been applied to the right URL.
> 
> On Sat, Jan 22, 2011 at 11:45 PM, --[ UxBoD ]-- <uxbod@xxxxxxxxxxxx>
> wrote:
> > Hi,
> >
> > 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>
> > Â ÂServerAdmin webmaster@xxxxxxxxxxxxxxxx
> > Â ÂDocumentRoot "/www/somedomain.co.uk"
> > Â Â<Directory /www/somedomain.co.uk/>
> > Â Â Â ÂAllowOverride All
> > Â Â</Directory>
> >
> > Â ÂServerName www.somedomain.co.uk
> > Â ÂServerAlias somedomain.co.uk
> >
> > Â Â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 application/xml
> >
> > Â Â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/www.somedomain.co.uk-error.log"
> > Â ÂCustomLog "logs/www.somedomain.co.uk-access.log" common
> > </VirtualHost>
> >
> > Though when I navigate to
> > http://www.somedomain.co.uk/reports/test.html 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
> >

How do you mean, please ?
-- 
Thanks, Phil

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-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