I want NGINX to front requests that will backend proxy WinRM / WSMAN requests. Nginx should listen on port 80 and backend proxy to port 5985.
nginx config:
server {
listen 80;
server_name wsman.example.com;
index index.html default.aspx;
location / {
proxy_pass http://192.168.5.8:5985;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 10m;
client_body_buffer_size 128k;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffers 32 4k;
}
}
I'm testing this through powershell remoting. If I hit the server directly it works, but when I try to go through the proxy it fails. Looking through network capture, it seems to do ok with the authorization request, but then powershell reports an "Access Denied". Am I missing something special in the Nginx config, or does it simply not work due to Microsoft's implementation (i.e. how nginx can't front end NTLM auth requests due to Microsoft's implementation)