• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 190
  • Last Modified:

I would like to override something set in a .htaccess in a higher directory.

i have a htaccess file that does this,

AuthUserFile /var/www/servers/.htpasswd
AuthName "Not worth looking at really, so go away"
AuthType Basic

<Limit GET POST>
require valid-user

but in a lower directory, i do not need to require basic auth, but i cant seem to override the directive in the .htaccess and it asks users for a password.

i have tried such directives as
allow all


Anonymous nobody

but it stills ask for a username/password

I cant change the structure of the site so i really have to solve this, thanks
1 Solution
You might want to create a .htaccess file in that directory, or any directory beneath the one protected with only "Satisfy Any" in it.  Any of course any other Apache directive can be added too.

More detailed discussion at Apache's website.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now