When configuring NGINX with SSL the configuration stated you could have the listen parameter followed by IP:PORT. Initially I attempted to put the below.
Incorrect NGINX SSL Port Configuration:
- listen 127.0.0.1:443;
This caused an error when attempting to visit localhost via HTTPS. The error was “SSL received a record that exceeded the maximum permissible length” followed by ssl_error_rx_record_too_long. This may be related to only listening on 127.0.0.1 or the localhost so in my case I simply changed the configuration line to the below.
Correct NGINX SSL Port Configuration:
- listen 443;
The IP address defaults to localhost and SSL was working without this error after modifying this line.