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 [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]