<div dir="auto"><div>Hi Rozitis,</div><div dir="auto"><br></div><div dir="auto">Thanks for your reply.<br><div dir="auto"><br></div><div dir="auto"><br></div><br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Thu, May 23, 2019, 10:58 PM Reinis Rozitis <<a href="mailto:r@roze.lv">r@roze.lv</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> Instead of IP address, if we use FQDN with https, do we have to validate the SSL certificate on Proxy_Pass?. <br>
<br>
By default the certificate validation is turned off (and nginx just uses the ssl for traffic encryption). <br>
If needed you can enable it with proxy_ssl_verify on; ( <a href="http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_ssl_verify" rel="noreferrer noreferrer" target="_blank">http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_ssl_verify</a> )<br>
<br>
<br>
> Due to IP address, multiple sites on the server Nginx access log logging the same requests.<br>
<br>
If you do the logging on the backend server (and there are multiple virtualhosts) and proxy_pass is via <a href="http://ip" rel="noreferrer noreferrer" target="_blank">http://ip</a>, then you need/have to pass also the Host header.<br>
<br>
Either by passing the Host header from original request:<br>
<br>
proxy_set_header Host $host;<br>
<br>
or you can specify a custom one:<br>
<br>
proxy_set_header Host "some.domain";<br>
<br>
<br>
<br>
> Is the above Nginx config, correct way of doing it?.<br>
<br>
Depends on your setup and what you want to achieve.<br>
<br>
<br>
For example if your location blocks match the request on the backend you can omit the URI in the proxy_pass directive:<br>
<br>
location /abc {<br>
proxy_pass <a href="https://1.1.1.1" rel="noreferrer noreferrer" target="_blank">https://1.1.1.1</a>;<br>
}<br>
<br>
rr<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank" rel="noreferrer">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div></div></div>