Configure nginx a reverse proxy https for IIS backend

Johan Gabriel Medina Capois jmedina at
Tue Apr 7 01:52:21 UTC 2020

Hello everyone

We are noob on nginx and we are trying to configure a site that is in Windows IIS, we could configure the site with http:// but with https:// we can't

IIS Backend server application running on port 80 and 443

Nginx reverse proxy
Version 1.17.9 on ubuntu bionic

This is our config files


user  nginx;
worker_processes  auto;

error_log  /var/log/nginx/error.log warn;
pid        /var/run/;

events {
    worker_connections  1024;

http {
    include       /etc/nginx/mime.types;
    default_type  application/octet-stream;

    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';

    access_log  /var/log/nginx/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    keepalive_timeout  65;

    #gzip  on;

    include /etc/nginx/conf.d/*.conf;

HTTP site config

server {
listen 80;
    location / {

proxy_max_temp_file_size 0;

HTTPS site config
server {
listen 443;
location / {

proxy_ssl_certificate /etc/nginx/certificados/dev-kronoscerts/cert.crt;
proxy_ssl_certificate_key /etc/nginx/certificados/dev-kronoscerts/key.rsa;


Could you help us please


Johan Medina
Administrador de Sistemas e Infraestructura     [Logo]

Departamento: TECNOLOGIA
Central Tel: 809-539-600 Ext: 8139
Flota: (809) 974-4954
Directo: 809 974-4954
Email: jmedina at<https:://>

[Facebook icon] <> [Instagram icon]  <> [Linkedin icon]  <> [Youtube icon]


Sea amable con el medio ambiente: no imprima este correo a menos que sea completamente necesario.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list