Answers for "nginx port 80 forward to 443"

C#
0

nginx listen on 80 and 443

server {
    listen 80;
    listen 443 default_server ssl;

    # other directives
}
Posted by: Guest on September-22-2020
0

nginx redirect to port

server {
listen 80; // port to listen on

server_name <server_name>;

// port to return/redirect to:
return 443 https://$server_name$request_uri;
}
Posted by: Guest on October-10-2021

C# Answers by Framework

Browse Popular Code Answers by Language