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.

Nginx HTTP Server (Paperback)

By (author) Clément Nedelcu


List Price: $44.99 USD
New From: $39.22 In Stock
Used from: $34.19 In Stock
Support Question Defense & Purchase From Amazon


List Price: $34.99 USD
New From: $17.36 In Stock
Used from: $6.39 In Stock
Support Question Defense & Purchase From Amazon

Tags: , , , , , , , ,
Leave a Reply

*Type the letter/number combination in the abvoe field before clicking submit.

*