nginx allow http and https 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
}