开发者

Apache asks the password for each subdomain with htpasswd

开发者 https://www.devze.com 2023-01-16 03:24 出处:网络
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

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

精彩评论

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