Hi!
I'm having problem with Nginx SSL return. My Nginx server have certificate, which is signed for www.example.com, but not for example.com. I can't make, that my Nginx server return web page proper. I'm getting ssl received a record that exceeded the maximum permissible length. This is my config:
server {
listen 80;
server_name example.com;
return 301 https://www.$host$request_uri;
}
server {
listen 80;
server_name www.example.com;
return 301 https://$host$request_uri;
}
server {
listen 443;
server_name example.com;
return 301 https://www.$host$request_uri;
}
server {
listen 443;
server_name www.exemple.com
....rest of config.....
So my problems whit 443 without www. Thanks for help.
I'm having problem with Nginx SSL return. My Nginx server have certificate, which is signed for www.example.com, but not for example.com. I can't make, that my Nginx server return web page proper. I'm getting ssl received a record that exceeded the maximum permissible length. This is my config:
server {
listen 80;
server_name example.com;
return 301 https://www.$host$request_uri;
}
server {
listen 80;
server_name www.example.com;
return 301 https://$host$request_uri;
}
server {
listen 443;
server_name example.com;
return 301 https://www.$host$request_uri;
}
server {
listen 443;
server_name www.exemple.com
....rest of config.....
So my problems whit 443 without www. Thanks for help.