This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
linux:ubuntu:apache2 [2018/01/08 12:01] – lunetikk | linux:ubuntu:apache2 [2018/01/08 12:03] – lunetikk | ||
---|---|---|---|
Line 65: | Line 65: | ||
For SSL, add the follow to your vHost config | For SSL, add the follow to your vHost config | ||
- | Redirect to https:// - insert in virtualhost: | + | Redirect to %%https://%% - insert in virtualhost: |
< | < | ||
RewriteEngine | RewriteEngine | ||
Line 74: | Line 74: | ||
Add virtualhost: | Add virtualhost: | ||
< | < | ||
- | SSLEngine On | + | |
- | SSLCertificateFile / | + | SSLCertificateFile / |
- | SSLCertificateKeyFile / | + | SSLCertificateKeyFile / |
- | SSLCertificateChainFile / | + | SSLCertificateChainFile / |
- | # | + | |
- | SSLProtocol All -SSLv2 -SSLv3 -TLSv1 | + | SSLProtocol All -SSLv2 -SSLv3 -TLSv1 |
< | < | ||
- | SSLRequireSSL On | + | |
- | SSLVerifyClient optional | + | SSLVerifyClient optional |
- | SSLVerifyDepth 1 | + | SSLVerifyDepth 1 |
- | SSLOptions +StdEnvVars +StrictRequire | + | SSLOptions +StdEnvVars +StrictRequire |
</ | </ | ||
</ | </ | ||
Line 98: | Line 98: | ||
=== vHost example === | === vHost example === | ||
- | < | + | < |
< | < | ||
# The ServerName directive sets the request scheme, hostname and port that | # The ServerName directive sets the request scheme, hostname and port that | ||
Line 168: | Line 168: | ||
</ | </ | ||
- | SSLEngine On | + | |
- | SSLCertificateFile / | + | SSLCertificateFile / |
- | SSLCertificateKeyFile / | + | SSLCertificateKeyFile / |
- | SSLCertificateChainFile / | + | SSLCertificateChainFile / |
- | # | + | |
- | SSLProtocol All -SSLv2 -SSLv3 -TLSv1 | + | SSLProtocol All -SSLv2 -SSLv3 -TLSv1 |
< | < | ||
- | SSLRequireSSL On | + | |
- | SSLVerifyClient optional | + | SSLVerifyClient optional |
- | SSLVerifyDepth 1 | + | SSLVerifyDepth 1 |
- | SSLOptions +StdEnvVars +StrictRequire | + | SSLOptions +StdEnvVars +StrictRequire |
</ | </ | ||
- | </ | + | </ |
</ | </ |