Posts tagged with 'ssl'
SSL termination, sometimes so easy, sometimes so hard… If you ended up reading this article you probably are in the second group. Welcome to the brotherhood, mate.
WordPress uses the
is_ssl()function to determine if SSL is being used in the server. In order to do this, it uses
$_SERVER['SERVER_PORT']to check if they are set. The problem when you use a reverse proxy, like in almost all the installations I run, is that Apache serves the content in HTTP trough port 80 inside a Docker container, then Caddy Server manages the HTTPS connection to the outside world.