Issue:-
Issue occured when i tried to create the reverse proxy in the nginx
upstream dashboard {
server 172.31.4.205:30545;
}
server {
listen 443;
listen [::]:443;
ssl_certificate /etc/nginx/ssl/server.crt;
ssl_certificate_key /etc/nginx/ssl/server.key;
location / {
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass https://dashboard;
}
}
Error:-
ssl received a record that exceeded the maximum permissible length centos
Cause:-
missing ssl on; directive.
Resolution:-
The issue was occuring because the ssl on; directive was missing in the configuration , even though nginx says that the ssl on; is not required and gives a warning still i got the error till i not included the ssl on; in the configuration.
upstream dashboard {
server 172.31.4.205:30545;
}
server {
listen 443;
listen [::]:443;
ssl on;
ssl_certificate /etc/nginx/ssl/server.crt;
ssl_certificate_key /etc/nginx/ssl/server.key;
location / {
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass https://dashboard;
}
}
0 comments:
Post a Comment