gohugo behind apache with letsencrypt

Introduction So I learn’t pretty quickly that running ssl cert termination on an AWS ELB was not that smart from a cost perspective. Pre req’s:- Ubuntu 16.04+ Running Apache2 Certbot installed using instructions at Certbot EFF The http apache virtualhost config Before you start you will need to have a config setup similar to this:- NameVirtualHost *:80 <VirtualHost *:80> ServerName myblog.com ServerAlias www.myblog.com ProxyPreserveHost On <Proxy *> AddDefaultCharset Off Order deny,allow Allow from all </Proxy> ProxyPass / http://localhost:8080/ ProxyPassReverse / http://localhost:8080/ ErrorLog ${APACHE_LOG_DIR}/myblog-error.