- 論壇徽章:
- 0
|
我現(xiàn)在有一臺(tái)服務(wù)器nginx做前端,后端是windows iis站點(diǎn)集成windows身份認(rèn)證的應(yīng)用方式
配置文件大概如下:
upstream mysvr1 {
#這里指定多個(gè)源服務(wù)器,ip:端口,80端口的話(huà)可寫(xiě)可不寫(xiě)
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;
}
問(wèn)題是,我訪問(wèn)nginx前端站點(diǎn)時(shí),瀏覽器跳出的窗口輸入用戶(hù)密碼后無(wú)效,無(wú)法訪問(wèn)到后端的服務(wù)器的內(nèi)容!
頭信息顯示如下:
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
請(qǐng)問(wèn)如何解決?
謝謝 |
|