nginx logging
# logging
nginx server_name directive
Nginx uses host header for matching the server_name directive. In HTTP 1 clients set this header but in HTTP2 this header has been replaced with :authority psudo header. So if you're using HTTP2 in nginx and this header is absent then it falls back to the first server directive and for example if you have two sub domains with different backends, then navigating to first sub domain might render second subdomain for you.
Nginx
In nginx the trailing slash is important in proxy_pass directive. If you have a trailing slash in the proxy_pass directive like this: