Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: Nginx to iis proxy, periodical Invalid hostname error

$
0
0
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;


}

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>