Chinaunix
标题:
咨询一下nginx做前端,后端是windows iis站点集成windows身份认证的应用方式
[打印本页]
作者:
雨中漫步
时间:
2009-12-24 18:25
标题:
咨询一下nginx做前端,后端是windows iis站点集成windows身份认证的应用方式
我现在有一台服务器nginx做前端,后端是windows iis站点集成windows身份认证的应用方式
配置文件大概如下:
upstream mysvr1 {
#这里指定多个源服务器,ip:端口,80端口的话可写可不写
server 192.168.1.50 weight=1;
}
server {
listen 80;
server_name localhost2;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
proxy_pass http://mysvr1;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
问题是,我访问nginx前端站点时,浏览器跳出的窗口输入用户密码后无效,无法访问到后端的服务器的内容!
头信息显示如下:
HTTP/1.1 401 Unauthorized
Server: nginx/0.8.4
Date: Thu, 24 Dec 2009 09:50:53 GMT
Content-Type: text/html
Connection: keep-alive
Content-Length: 1952
WWW-Authenticate: Negotiate
WWW-Authenticate: NTLM
X-Powered-By: ASP.NET
请问如何解决?
谢谢
作者:
雨中漫步
时间:
2009-12-25 09:46
有谁知道怎么解决吗?
谢谢
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2