开发者

Apache asks the password for each subdomain with htpasswd

Apache asks the password for each subdomain with htpasswd.

I want that he would ask the password at the first input and remembered me for all subdomains

I use the following code:

AuthType Basic
AuthName "Projects"
AuthUserFile /blablabla/b开发者_如何学Goaz.htpasswd
Require valid-user


Actually Apache httpd asks for your user credentials on every request on every subdomain. It's your web browser, which caches your credentials (per hostname) and sends them on every subsequent request on the same hostname.

You can't really circumvent that behaviour without full control over your clients' software if you want to keep the different subdomains.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜