Httpd Redirect To Secure Content: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * [[httpd Configuration#Subjects] =Overview= =Procedure=")
 
No edit summary
Line 4: Line 4:


=Overview=
=Overview=
It is sometimes desirable to serve the content of a web site over HTTPS but not over HTTP. However, it is nice to provide a redirect service for the entire HTTP site, so the users are automatically redirected to the secure site when they try to access the unsecured content. One way of implementing this is presented below.


=Procedure=
=Procedure=
Declare two virtual sites, one secure and one unsecure, under the same <tt>ServerName</tt>.
Details on how to configure virtual hosts are available here: [[]]
Details on how to secure a site with SSL are available here: [[]]

Revision as of 02:58, 7 January 2016

Internal

  • [[httpd Configuration#Subjects]

Overview

It is sometimes desirable to serve the content of a web site over HTTPS but not over HTTP. However, it is nice to provide a redirect service for the entire HTTP site, so the users are automatically redirected to the secure site when they try to access the unsecured content. One way of implementing this is presented below.

Procedure

Declare two virtual sites, one secure and one unsecure, under the same ServerName.

Details on how to configure virtual hosts are available here: [[]]

Details on how to secure a site with SSL are available here: [[]]