Appendix |
server { listen 80; rewrite ^ https://$host$request_uri? permanent; } server { listen 443; root .../www/public; [...] }Update the values of the listen and rewrite directives with the desired ports (for example, 9080 and 9443).
server { listen 9080; rewrite ^ https://$host:9443$request_uri? permanent; } server { listen 9443; root .../www/public; [...] }
> cd C:\\Shares\nginx > nginx -s reload