Redirect non-SSL to ssl with phpfpm?

1 post / 0 new
#1 Wed, 03/29/2017 - 00:28
trenzterra

Redirect non-SSL to ssl with phpfpm?

Hi there,

I am currently using Virtualmin with the "redirect non-SSL to ssl" option enabled, and also phpfpm.

Doing so creates a Redirect rule and a Proxypass rule which redirects all http pages to https and all php files through fpm.

However, it seems that my php files pass through the proxypass rule without the redirect rule taking effect. As a result, all my php files accessed with a http link are not automatically redirecting to https.

What would be the simplest way to resolve this conflict? Thanks!