This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:ubuntu:apache2 [2018/01/08 12:01] – lunetikk | linux:ubuntu:apache2 [2020/01/13 21:25] (current) – lunetikk | ||
|---|---|---|---|
| Line 19: | Line 19: | ||
| < | < | ||
| apt-get install libapache2-mod-python | apt-get install libapache2-mod-python | ||
| + | </ | ||
| + | |||
| + | PHP5 | ||
| + | < | ||
| + | apt-get install php5 libapache2-mod-php5 php-pear php5-xcache | ||
| </ | </ | ||
| PHP | PHP | ||
| < | < | ||
| - | apt-get install libapache2-mod-php5 php5 php-pear php5-xcache | + | apt-get install |
| </ | </ | ||
| Line 65: | Line 70: | ||
| 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 79: | ||
| 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 168: | Line 173: | ||
| </ | </ | ||
| - | 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 |
| </ | </ | ||
| </ | </ | ||
| </ | </ | ||