[CentOS] creating a htpasswd file for certain urls
Agnello George
agnello.dsouza at gmail.com
Fri Mar 18 17:16:50 UTC 2011
On Fri, Mar 18, 2011 at 10:07 PM, John Doe <jdmls at yahoo.com> wrote:
> From: Jason Slack-Moehrle <slackmoehrle.lists at gmail.com>
>
>>> I am in a kind of fix , i got a website ( beta.somesite.com ) .. that
>>> need to be password protected , however there are two URLs that
>>> should be allowed to all with out password access. Ona cent os box 5.5
>>> i am running apache .
>>> the entire site needs passwd protection except for the Below Urls .
>
> Google ("apache protect pages except page") says:
> http://snipplr.com/view/28785/htaccess-password-protect-your-entire-site-except-certain-pages/
>
>
i think the above link would of worked , but i was able to fix the
first part of my problem :
<Directory /var/www/html/projects/beta.somesite.com>
DirectoryIndex index.php
Options Indexes FollowSymLinks MultiViews
AllowOverride None
AuthType Basic
AuthName "beta.somesite.com "
AuthUserFile /var/www/html/projects/beta.somesite.com/.htpasswd
Require valid-user
SetEnvIf request_uri "/wp-content" allow_all # this works perfectly
# SetEnvIf request_uri regex '/?cat=592&feed=rss2' allow_all
## this does not work ??!!
Satisfy any
Order allow,deny
Allow from env=allow_all
</Directory>
but the other part of my problem (
http://beta.somesite.com/?cat=592&feed=rss2 ) which is basically
params , which i am unable to allow for rss feeds .
--
Regards
Agnello D'souza
More information about the CentOS
mailing list