location / {
keepalive_requests 500;
proxy_http_version 1.1;
proxy_ignore_client_abort on;
...
It gives same situation.
http://193.232.254.196:6058/ is public ip that redirect to http:localhost:80 on remote server.
I suppose it, because
listen 6058;
server_name 193.232.254.196;
not work at all ( ERR_CONNECTION_REFUSED)
but with
listen 80
server_name localhost
I have access to my iis, but periodically there are 400 errors.
http://localhost:8080 is url for IIS on remote server.
For example to be clear I tested this configuration only on my remote server and also have 400 error periodically with testing http://127.0.0.1:81 on server.
listen 81;
server_name 127.0.0.1;
location / {
keepalive_requests 500;
proxy_http_version 1.1;
proxy_ignore_client_abort on;
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 $scheme;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://localhost:8080;
}
keepalive_requests 500;
proxy_http_version 1.1;
proxy_ignore_client_abort on;
...
It gives same situation.
http://193.232.254.196:6058/ is public ip that redirect to http:localhost:80 on remote server.
I suppose it, because
listen 6058;
server_name 193.232.254.196;
not work at all ( ERR_CONNECTION_REFUSED)
but with
listen 80
server_name localhost
I have access to my iis, but periodically there are 400 errors.
http://localhost:8080 is url for IIS on remote server.
For example to be clear I tested this configuration only on my remote server and also have 400 error periodically with testing http://127.0.0.1:81 on server.
listen 81;
server_name 127.0.0.1;
location / {
keepalive_requests 500;
proxy_http_version 1.1;
proxy_ignore_client_abort on;
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 $scheme;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://localhost:8080;
}