Reverse Proxy to IIS with Basic & Windows Authentication
February 01, 2010 01:15PM
Hi,

I'm trying to setup nginx to be a reverse proxy and load balancer for our IIS servers. Everything seems to work fine except when a page on the IIS server requires authentication. Currently what happens is I'm continually prompted to authenticate and never gain access to the requested content.

Is it possible for nginx to do this and if so could someone provide a example config?

Thanks,
Jonathan
Re: Reverse Proxy to IIS with Basic & Windows Authentication
April 23, 2010 10:58AM
Hi Jonathan.

Did you receive some answer about above question?

I have same authentication problem with other applications. In my case, I use HAProxy (http://haproxy.1wt.eu/)

Thanks,

Diovani
Re: Reverse Proxy to IIS with Basic & Windows Authentication
April 23, 2010 02:15PM
No I never did receive an answer or find the appropriate information.

I have since started messing around with Pound, using it's ability to filter URL's with RE to direct certain requests to the nginx servers and certain requests to the IIS servers.
Re: Reverse Proxy to IIS with Basic & Windows Authentication
April 28, 2016 05:26AM
I know this is not an HAproxy forum however this is just incase somone else has the same issue.
To solve this problem you need to use "mode tcp" using HAProxy.
IIS is expecting the exact TCP traffic and while HAProxy resends valid HTTP requests it changes the TCP stream.

"mode tcp" still works with SSL however you will lose the "option forwardfor" option


frontend port80redirect
bind *:80
mode http
redirect location https://url.of.server

frontend port443listen
bind *:443 ssl crt /etc/haproxy/certs/cert.pem
mode tcp
default_backend https-backend

backend https-backend
mode tcp
server crm <ServerIP>:443 check ssl verify none



Edited 1 time(s). Last edit at 04/28/2016 05:26AM by bgnw.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 181
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready