Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux_wiki:configure_tls_security [2018/04/10 00:00] billdozor [Configuring a Site with a TLS Certificate] |
linux_wiki:configure_tls_security [2019/05/25 23:50] (current) |
||
---|---|---|---|
Line 62: | Line 62: | ||
< | < | ||
- | ServerAdmin admin@blusesite.example.com | + | ServerAdmin admin@bluesite.example.com |
DocumentRoot / | DocumentRoot / | ||
ServerName bluesite.example.com | ServerName bluesite.example.com | ||
Line 100: | Line 100: | ||
Redirect http to https. | Redirect http to https. | ||
- | Option 1: Using mod_rewrite | + | \\ |
+ | Option 1: Using Redirect (**Apache documentation recommends this method**) | ||
<code bash> | <code bash> | ||
< | < | ||
- | ServerName | + | ServerName |
- | + | ||
- | | + | |
- | RewriteRule ^(/.*)$ | + | |
</ | </ | ||
</ | </ | ||
\\ | \\ | ||
- | Option 2: Using Redirect | + | Option 2: Using mod_rewrite |
<code bash> | <code bash> | ||
< | < | ||
- | ServerName | + | ServerName |
- | + | ||
- | | + | |
+ | RewriteRule ^(/.*)$ | ||
</ | </ | ||
</ | </ |