带有虚拟主机的Apache mod_auth_sspi
在使用虚拟主机时,apache的mod_auth sspi模块有一个问题。问题在于登录提示 这是我的httpd-vhosts.conf文件的配置带有虚拟主机的Apache mod_auth_sspi,apache,single-sign-on,virtualhost,Apache,Single Sign On,Virtualhost,在使用虚拟主机时,apache的mod_auth sspi模块有一个问题。问题在于登录提示 这是我的httpd-vhosts.conf文件的配置 <VirtualHost *:80> ServerName test.localhost DocumentRoot "c:/Web/test" </VirtualHost> <Directory "c:/Web/test"> Options Indexes FollowSymLinks Mu
<VirtualHost *:80>
ServerName test.localhost
DocumentRoot "c:/Web/test"
</VirtualHost>
<Directory "c:/Web/test">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
AuthName "Protected"
AuthType SSPI
SSPIAuth On
SSPIAuthoritative On
SSPIOfferBasic On
#SSPIOmitDomain On
require valid-user
</Directory>
在我的浏览器中,一切正常。我将在$\u SERVER['PHP\u AUTH\u USER']变量中获取用户名。我不必在提示窗口中键入用户名和密码。但如果我打电话
http://test.localhost
我总是必须在登录掩码中键入用户名和密码
我还把网站放在IE设置中的intranet区域
你有什么想法吗?SSPI站点需要在你使用的浏览器中得到信任。 这就是为什么它可能适用于localhost,但不适用于test.localhost 在Internet Explorer中,您可以定义要信任的所有intranet站点。 在Firefox中,您可以使用network.automatic-ntlm-auth.trusted-uris
http://test.localhost