do I need listen to both port 80 and 443 nginx code example
Example: nginx listen on 80 and 443
server {
listen 80;
listen 443 default_server ssl;
# other directives
}
server {
listen 80;
listen 443 default_server ssl;
# other directives
}