My server listen 443 port and redirects the requests to another port in the server. Also my server listen 80 port and displays a static content the user when they browse htt
You can invoke a named location as the default action of your try_files statement.
try_files
For example:
location / { try_files $uri $uri/ @proxy; } location @proxy { proxy_pass http://backend; }
See this document for details.