Welcome! Log In Create A New Profile


Ngix reverse proxy pass authentication IIS

May 11, 2020 06:36PM
I'm trying to set up a reverse proxy with NGNIX on a Ubuntu Server. The upstream server is IIS configured with basic authentication working only as https since it has a 301 redirection configured on it.
Here is my conf file
server {

listen 80;
return 301 https://$host$request_uri;
server {
listen 443;
server_name fweb.biz;
ssl_certificate /etc/nginx/ssl/cert.crt;
ssl_certificate_key /etc/nginx/ssl/cert.key;
ssl on;
ssl_session_cache builtin:1000 shared:SSL:10m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

ssl_prefer_server_ciphers on;
access_log /var/log/nginx/access.log;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_read_timeout 90;
proxy_redirect https://fweb.biz;

I'm redirect to the upstream server and asked for credential but nothing happens. Looks like the credential are not pass to the upstream server.
Please can somebody help me.
Subject Author Posted

Ngix reverse proxy pass authentication IIS

evulcu May 11, 2020 06:36PM

Re: Ngix reverse proxy pass authentication IIS

Francis Daly May 12, 2020 10:52AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 84
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready