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