From 14f2a9ac0f226ad282dd6b43a0f04419355bc9f7 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 13 Jan 2022 11:41:27 +0100 Subject: [PATCH] Remove force usage of https --- conf/nginx_no_php.conf | 5 ----- conf/nginx_with_php.conf | 5 ----- 2 files changed, 10 deletions(-) diff --git a/conf/nginx_no_php.conf b/conf/nginx_no_php.conf index 5367ecf..39a4573 100644 --- a/conf/nginx_no_php.conf +++ b/conf/nginx_no_php.conf @@ -4,11 +4,6 @@ location __PATH__/ { # Path to source alias __FINALPATH__/www/; - # Force usage of https - if ($scheme = http) { - rewrite ^ https://$server_name$request_uri? permanent; - } - # Default indexes and catch-all index index.html index.php; try_files $uri $uri/ __PATH__/index.php?$args; diff --git a/conf/nginx_with_php.conf b/conf/nginx_with_php.conf index 3f4d62f..723df1b 100644 --- a/conf/nginx_with_php.conf +++ b/conf/nginx_with_php.conf @@ -4,11 +4,6 @@ location __PATH__/ { # Path to source alias __FINALPATH__/www/; - # Force usage of https - if ($scheme = http) { - rewrite ^ https://$server_name$request_uri? permanent; - } - # Default indexes and catch-all index index.html index.php; try_files $uri $uri/ __PATH__/index.php?$args;