nginx listen on 80 and 443
server {
listen 80;
listen 443 default_server ssl;
# other directives
}
nginx listen on 80 and 443
server {
listen 80;
listen 443 default_server ssl;
# other directives
}
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;
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us