Configure Nginx to listen for HTTPS requests: Open Nginx's configuration file. In this file, find or add a server block that HTTPS listens to.
3. Restart Nginx service: After saving the configuration file, restart Nginx service with an appropriate command to make the configuration changes take effect.
4. After completing the above steps, when accessing https, Nginx will use the default HTTPS port 443 to provide secure connection without explicitly specifying the port number.