Date: Thu, 5 Mar 2009 10:20:34 +0000 From: dhaneshk k <dhaneshkk@hotmail.com> To: <questions@freebsd.org> Subject: password protection for RewriteRule Message-ID: <COL106-W2796DDF4683D22281F6C34B2A40@phx.gbl>
next in thread | raw e-mail | index | archive | help
List=3B I am using apache2.2 =20 I need to do a password protected access to a website eg www.mydoma= in.com I have this Vhost configuration in my httpd-Vhost.conf =20 <VirtualHost *:80> ServerName mydomain.com RewriteEngine On RewriteRule ^/(.*) http://127.0.0.1:8081/VirtualHostBase/http/www.mydomain.= com:80/site1/VirtualHostRoot/$1 [L=2CP] ErrorLog /var/log/apache/mysite.com/error_log CustomLog /var/log/apache/mysite.com/access.log combined </VirtualHost>Now anybody in their browse type www.mydomain.com they = can view my site =2C but I want to make them to enter a username & pa= ssword to view the site . How can I do a password protected access to my site for this Rewrit= eRule based Vhost=20 ( I know that I can do .htaccess & .htpasswd based authentication for = directories in apache . ) But for RewriteRule is it possible ? How ? I appreciate very much for your valuable suggestions & hints to how to d= o that . Thanks in advance=20 Dhanesh. _________________________________________________________________ So many new options=2C so little time. Windows Live Messenger. http://www.microsoft.com/india/windows/windowslive/messenger.aspx=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?COL106-W2796DDF4683D22281F6C34B2A40>