1

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.

yak
  • 113
  • 1
  • 2
  • 10

1 Answers1

2

In the VirtualHost for your HTTP site, add

Redirect permanent /path/to/page https://example.com/path/to/page

See the docs for Redirect. Note that this will leave the user on HTTPS as they continue browsing your site.

Andrew Schulman
  • 8,811
  • 21
  • 32
  • 47