Already Analyze that you mind. I make the necesary corrections, also this change delete 2 erros that console show me.
Thank you very much
Can you show how you solved it. Its good for anyone who needs help with the same issue.
I have left the code as it is, and although it does not redirect from the IP URL as you suggested, it has left the console completely free of errors.
listen deltageos.cl:443 ssl default_server;
ssl_certificate /etc/ssl/virtualmin/1676387192211864/ssl.combined;
ssl_certificate_key /etc/ssl/virtualmin/1676387192211864/ssl.key;
if ($scheme = http) {
rewrite "^/(?!.well-known)(.*)$" "https://$host/$1" break;
Ok Good luck, happy that it works for you.
Actually my suggestion above..
What happens when you add this in your nginx conf below
listen 85.239.248.228:443 ssl;
server_name 85.239.248.228;
return 301 https://deltageos.cl;
Then restart nginx and check what happens when you goto For instance:
http://85.239.248.228/login
and see if it redirects tohttps://deltageos.cl