Answers for "nginx ssl and http"

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
1

nginx ssl

server {
    listen              443 ssl;
    server_name         www.example.com;
    ssl_certificate     www.example.com.crt;
    ssl_certificate_key www.example.com.key;
    ssl_protocols       TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers         HIGH:!aNULL:!MD5;
    ...
}
Posted by: Guest on September-15-2021
-1

nginx local setup https

$ openssl req -x509 -sha256 -nodes -newkey rsa:2048 -days 365 -keyout localhost.key -out localhost.crt
Posted by: Guest on August-14-2020

C# Answers by Framework

Browse Popular Code Answers by Language