diff --git a/Apache2 site/jsonhero.example.com.conf b/Apache2 site/jsonhero.example.com.conf new file mode 100644 index 0000000..8541050 --- /dev/null +++ b/Apache2 site/jsonhero.example.com.conf @@ -0,0 +1,33 @@ + +ServerName jsonhero.example.com +ErrorLog ${APACHE_LOG_DIR}/jsonhero.example.com-error.log +CustomLog ${APACHE_LOG_DIR}/jsonhero.example.com-access.log combined +RewriteEngine on +RewriteCond %{HTTPS} !=on +RewriteRule ^/?(.*) https://%{HTTP_HOST}/$1 [R=301,L] +ProxyPass / http://127.0.0.1:2887/ +ProxyPassReverse / http://127.0.0.1:2887/ +ProxyPreserveHost On +ProxyAddHeaders On +RequestHeader set X-Forwarded-Proto "http" +RewriteCond %{SERVER_NAME} =jsonhero.example.com +RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] + + + + +ServerName jsonhero.example.com +ErrorLog ${APACHE_LOG_DIR}/jsonhero.example.com-error.log +CustomLog ${APACHE_LOG_DIR}/jsonhero.example.com-access.log combined +RewriteEngine on +ProxyPass / http://127.0.0.1:2887/ +ProxyPassReverse / http://127.0.0.1:2887/ +ProxyPreserveHost On +ProxyAddHeaders On +RequestHeader set X-Forwarded-Proto "http" +SSLCertificateFile /etc/letsencrypt/live/jsonhero.example.com/fullchain.pem +SSLCertificateKeyFile /etc/letsencrypt/live/jsonhero.example.com/privkey.pem +Include /etc/letsencrypt/options-ssl-apache.conf + + +