Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
i think you need to install self signed ssl for all the non ssl sites. then after giving warning it will take you to the correct location.
What you’re seeing here is due to how the SSL protocol works.
When a browser makes an https:// request for a domain, it first connects to the server over the SSL port (port 443). Only after it connects to the SSL port of the server does it begin the SSL protocol where it asks the server to provide the site’s SSL certificate.
As a result, if one site on a server has SSL enabled, if you go to the “https://” URL of any site on the server, the browser will immediately attempt to secure the connection and will check the certificate the server sends back. You can’t get a 404 page or a redirect until after the connection is secured by the browser.
So, you’re only option for any sites that don’t have their own valid SSL certificate is to let the user see a warning about an untrusted certificate when those sites are accessed with "https:// URLs. If you don’t want one of the real site’s domains to be shown in the SSL certificate information in the warning they see, you can use a self-signed certificate with a fake name. But visitors will still see scary untrusted site warnings in the browser in that case.
The only way to entirely avoid the SSL warnings on your servers for sites without their own SSL cert is to either a) use a valid SSL cert for each domain, or b) host your non-SSL sites on a separate server where there are no SSL sites at all.