NGINX – SSL received a record that exceeded the maximum permissible length
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:
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:
The IP address defaults to localhost and SSL was working without this error after modifying this line.