I am using Ubuntu and Nginx.
I have my site hosted under SSL protection.
If I type in the domain name in a browser without the 's' in 'https' in will redirect to 'https'. But if I type in the IP address of the domain name it will not redirect to 'https'. It iwll just show in the address bar 'http://xxx.xxx.xxx.xxx
I thought this:
server { listen 80 default_server; listen [::]:80 default_server; server_name _; return 301 https://$host$request_uri; } would solve this buy it does not.
Yours Novice...