Re: htaccess and htpasswd

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

 





Mandy Singh wrote:
Thanks Tony.

Doing the following inside the VirtualHost tag did it -

<VirtualHost 127.0.0.1:80 <http://127.0.0.1:80>>
    ServerAdmin admin@xxxxxxx <mailto:admin@xxxxxxx>
    DocumentRoot F:\xampp-lite\xampplite\htdocs\c\trunk\app\webroot
    ServerName dev.c.com <http://dev.c.com>
    ErrorLog F:\xampp-lite\xampplite\apache\logs\error_log
    CustomLog F:\xampp-lite\xampplite\apache\logs\access_log common
    <Directory />

Mandy, just so you know, using <Directory /> applies to the root of your file system, i.e. /

You should consider using a <Location> stanza instead.




      AuthType Basic
      AuthName "Authentication Required"
      AuthUserFile "/var/www/html/.htpasswd"
      Require valid-user

      Order allow,deny
      Allow from all
</Directory> </VirtualHost>




--Tony

---------------------------------------------------------------------
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