Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

HTTPS return

$
0
0
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.

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>