Apache web server

This is what I have in access.conf :

<Directory /home/tanc02/web-docs/mcs/>
 AuthName  NEW
 AuthType Basic
 AuthUserFile /home/tanc02/web-server/.1234567890
 <Limit GET>
 require valid-user
 </Limit>
</Directory>

And why sometime, it asks the user name and password twice ?
Anything wrong ?

Should I have this :

<Directory /home/tanc02/web-docs/mcs/>

or this :

<Directory /home/tanc02/web-docs/mcs>
allquestAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gunny051499Commented:
if you are accessing a subarea of this with another (different passwort) and change back, it could cause you to be asked for it again (btw. you can take out the require parameter from the limit-brackets).

the later does not affect apache.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
allquestAuthor Commented:
can you be more specific ?
0
gunny051499Commented:
well you have the following:
<Directory /home/tanc02/web-docs/mcs/>

it may be, that you have also something like:
<Directory /home/tanc02/web-docs/mcs/subdir>
or like:
<Directory /home/tanc02/web-docs/>
being protected by a different passwort and/or username at the same time. this would cause you the effect described by you and is to be seen as a correct effect.

also i meant that you don't need to put in:
<Limit GET>
require valid-user
</Limit>
which usually shouldn't make sense, but just:
require valid-user

0
allquestAuthor Commented:
It still ask me twice for password and username.
And I only have one password file and there isn't any subdir in mcs. Why ?
0
gunny051499Commented:
any caching systems in the middle?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.