以前,我使用IIS服务器作为PHP服务器。目前,它是apache。
在IIS上,我可以访问变量$_SERVER ['REMOTE_USER'],它返回用户名和域(例如域\user),但是在安装XAMPP之后,这个变量是不可用的。
我该怎么做才能让这个变量再变一次?
我的应用程序在没有互联网连接的本地网络上。
发布于 2014-01-08 12:53:01
终于成功了!:D
Apache24\modules,并将其放在webserver上Apache文件夹的模块文件夹中。LoadModule authnz_sspi_module modules/mod_authnz_sspi.soLoadModule authn_core_module modules/mod_authn_core.so
LoadModule authz_core_module modules/mod_authz_core.so
PS:以上两个模块都是工作所需的。就这样。
我在用:
发布于 2014-11-14 08:03:42
<Directory "path/to/your/htcdocs/folder">
Options None
AllowOverride All
Order allow,deny
Allow from all
#AuthName "SSPI Protected Place"
AuthType SSPI
SSPIAuth On
SSPIAuthoritative On
SSPIOfferBasic On
SSPIOmitDomain On
Require valid-user
</Directory>如果您使用ModRewrite或其他,我建议您保留
Options Indexes FollowSymLinks Includes ExecCGI否则您将得到一个错误,如
[rewrite:error]: Options FollowSymLinks and SymLinksIfOwnerMatch are both off, so the RewriteRule directive is also forbidden due to its similar ability to circumvent directory restrictions发布于 2014-01-08 11:34:07
只有在Apache实际上已经对用户进行身份验证的情况下,才能访问远程用户,请检查阿帕奇人。
https://stackoverflow.com/questions/20994329
复制相似问题