Apache-如何获取远程用户变量
以前我使用IIS服务器作为PHP服务器。目前,它是apache 在IIS上,我可以访问变量Apache-如何获取远程用户变量,apache,fastcgi,Apache,Fastcgi,以前我使用IIS服务器作为PHP服务器。目前,它是apache 在IIS上,我可以访问变量$\u SERVER['REMOTE\u USER'],该变量返回用户名和域(例如domain\USER),但在安装XAMPP后,此变量不可用 我应该怎么做才能得到这个变量 我的应用程序位于本地网络上,没有internet连接如果Apache已对用户进行了实际身份验证,则只能访问远程用户,请检查。最终使其正常工作!:D 从这里下载模块(x86用于32位,x64用于64位apache) 从Apache24\m
$\u SERVER['REMOTE\u USER']
,该变量返回用户名和域(例如domain\USER),但在安装XAMPP后,此变量不可用
我应该怎么做才能得到这个变量
我的应用程序位于本地网络上,没有internet连接如果Apache已对用户进行了实际身份验证,则只能访问远程用户,请检查。最终使其正常工作!:D
Apache24\modules
文件夹复制mod_authnz\u sspi.so,并将其放置在Web服务器上Apache文件夹的modules文件夹中LoadModule authnz\u sspi\u module modules/mod\u authnz\u sspi.so
LoadModule authn\u core\u module modules/mod\u authn\u core.so
LoadModule authz_core_module modules/mod_authz_core.so
PS:以上两个模块都是此工作所必需的
选项无
允许超越所有
命令允许,拒绝
通融
#AuthName“SSPI保护场所”
AuthType SSPI
斯皮亚斯酒店
SSPIauthoritive On
SSPIOfferBasic On
sspion域
需要有效用户
- XAMPP控制面板3.2.1
- Apache2.4
[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
我为此奋斗了很长一段时间,结果证明我必须安装VC可再发行版才能使其正常工作。有人将其与新模块进行过比较吗?mod_authnz_sspi和mod_authn_ntlm似乎都是在同一时间发布的。有什么区别吗?运行xampp的机器是否应该注册到域?
<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>
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