My web server hosts many pages. However, I need to secure only one of them with SSL. I know how to create self-signed certificate and how to install it on Apache2. My problem is quite different: since my web server hosts many pages and I need to secure only one of them, what exactly (and where and how) should I configure? Thanks!
Im using x86_64 GNU/Linux Ubuntu.
In the VirtualHost for your HTTP site, add
See the docs for Redirect. Note that this will leave the user on HTTPS as they continue browsing your site.