diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-01-22 16:24:19 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-01-22 16:24:19 +0000 |
commit | f522aa63dbd36a76c307721cf6b27e16f4017dbb (patch) | |
tree | 9483665b1bdec8d93717f69def6af3ce2f7d6162 | |
parent | Fix thread and worker counts config (diff) | |
download | config-f522aa63dbd36a76c307721cf6b27e16f4017dbb.tar.bz2 config-f522aa63dbd36a76c307721cf6b27e16f4017dbb.tar.xz config-f522aa63dbd36a76c307721cf6b27e16f4017dbb.zip |
Enable SSL, configure for gentoobrowse
-rw-r--r-- | etc/apache/httpd.conf | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/etc/apache/httpd.conf b/etc/apache/httpd.conf index cfa0003..3dfd7c5 100644 --- a/etc/apache/httpd.conf +++ b/etc/apache/httpd.conf @@ -13,6 +13,7 @@ LogLevel warn User apache Group web Listen 80 +Listen 443 Timeout 300 KeepAlive On MaxKeepAliveRequests 100 @@ -46,6 +47,8 @@ LoadModule alias_module modules/mod_alias.so LoadModule cache_module modules/mod_cache.so LoadModule cache_disk_module modules/mod_cache_disk.so LoadModule status_module modules/mod_status.so +LoadModule ssl_module modules/mod_ssl.so +LoadModule socache_shmcb_module modules/mod_socache_shmcb.so CacheRoot "/var/cache/apache2/" CacheEnable disk / @@ -73,6 +76,7 @@ StartServers 1 MaxSpareThreads 5 MaxRequestWorkers 9 ThreadsPerChild 3 +SSLSessionCache shmcb:/run/apache2/ AddType application/x-httpd-php .php AddType text/xsl .xsl @@ -119,3 +123,9 @@ PerlSetVar JavaScriptMinifier JavaScript::Minifier::XS PerlModule CGI PerlSendHeader On </VirtualHost> +<VirtualHost *:443> + ServerName gentoobrowse.randomdan.homeip.net + SSLEngine On + SSLCertificateFile /etc/letsencrypt/live/gentoobrowse.randomdan.homeip.net/cert.pem + SSLCertificateKeyFile /etc/letsencrypt/live/gentoobrowse.randomdan.homeip.net/privkey.pem +</VirtualHost> |