Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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;
}
Source by serverfault.com #
 
PREVIOUS NEXT
Tagged: #nginx #redirect #port
ADD COMMENT
Topic
Name
1+1 =