On 3/5/2019 9:37 AM, Justin Taylor wrote:
I'm trying to allow optional HTTPS for an existing Apache server, but
I can't seem to make it optional. If SSL is Disabled or Optional,
HTTPS won't connect. If SSL is Enabled, HTTP won't connect. How can
I get both to function?
I usually setup two virtual hosts ... one that listens on port 80, the other that listens on port 443.
Both virtual hosts use the include directive to configure the details ...
For example, for the midrange mailing list archives this is a snippet of what's included in the 'archive.midrange.inc' file...
CustomLog /usr/local/www/midrange/archive/logs/access_log combined env=!loopback
AddOutputFilter DEFLATE js css php html htm
Then I have two additional files ... archive.midrange.conf and archive.midrange-le-ssl.conf
archive.midrange.conf consists of ...
archive.midrange-le-ssl.conf consists of ...
This is on Linux ... but it's still Apache, so it should will work fine on IBM i.