THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
/etc/apache2/sites-available/example.conf
<VirtualHost *:80>
ServerName example.ca
DocumentRoot /var/www/ofbiz/
ProxyRequests Off
<Proxy *>
AddDefaultCharset off
Order deny,allow
Allow from all
</Proxy>
ProxyVia On
ProxyPreserveHost On
ProxyPass /.well-known !
ProxyPass "/" "ajp://localhost:8009/"
</VirtualHost>
...
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName example.ca
DocumentRoot /var/www/ofbiz/
ProxyRequests Off
<Proxy *>
AddDefaultCharset off
Order deny,allow
Allow from all
</Proxy>
ProxyVia On
ProxyPreserveHost On
ProxyPass /.well-known !
ProxyPass "/" "ajp://localhost:8009/"
ServerAlias example.ca
SSLCertificateFile /etc/letsencrypt/live/example.ca/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/example.ca/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>
Then
...
enable
...
the
...
secure
...
site
...
with:
$ sudo a2ensite example-le-ssl
$ sudo service apache2 reload
Lastly, we can enable redirects from our http port 80 site to the SSL side:
...
Page properties | ||
---|---|---|
| ||
|