openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout /etc/nginx/key/default_server.key -out /etc/nginx/key/default_server.crt
server {
server_name _;
listen 80 default_server;
listen 443 default_server ssl;
ssl_certificate /etc/nginx/key/default_server.crt;
ssl_certificate_key /etc/nginx/key/default_server.key;
ssl_session_tickets off;
return 444;
}
0 意見:
張貼留言