httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From KK CHN <>
Subject [users@httpd] how to do a Password protection for a RewriteRule based VirtualHost
Date Thu, 05 Mar 2009 10:01:42 GMT
<VirtualHost *:80>
RewriteEngine On
RewriteRule ^/(.*)$1
ErrorLog /var/log/apache/
CustomLog /var/log/apache/ combined

Now  every one can access the site

But I want to restrict this access  to    a  group of members  ..
when they type
it should   promt for a username and password  ..

I know I can do it  for  directories  but is it possible for
RewriteRule section ?  How can we do it ?

Any hints & suggestions most welcome

Thanks in advance

View raw message