[CentOS] creating a htpasswd file for certain urls

Jason Slack-Moehrle slackmoehrle.lists at gmail.com
Fri Mar 18 15:25:24 UTC 2011


>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 .
>
>http://beta.somesite.com/wp-content/uploads/2011/03/large_1990782-e1299229
>617964.jpg
>
>http://beta.somesite.com/?cat=592&feed=rss2

With my limited knowledge could a ReWrite rule work here?

Maybe if these 2 URL's are requested, ReWrite to a URL that isn't password
protected that can get you to the same place these 2 could?

Anything else, Rewrite to a URL that is password protected that could get
you to a central point?

I am just thinking out loud conceptually. Maybe others could shed some
light as well.

-Jason





More information about the CentOS mailing list