문제

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/baz.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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top