From c11f92272f470535c832c1a650a052ffed3c2205 Mon Sep 17 00:00:00 2001 From: Ben Word Date: Fri, 10 Feb 2023 09:31:17 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Allow=20non-default=20upload=5Fp?= =?UTF-8?q?ath?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- roles/wordpress-setup/templates/wordpress-site.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/wordpress-setup/templates/wordpress-site.conf.j2 b/roles/wordpress-setup/templates/wordpress-site.conf.j2 index 36e648e1a4..d17f999c6a 100644 --- a/roles/wordpress-setup/templates/wordpress-site.conf.j2 +++ b/roles/wordpress-setup/templates/wordpress-site.conf.j2 @@ -122,7 +122,7 @@ server { {% block location_uploads_php -%} # Prevent PHP scripts from being executed inside the uploads folder. - location ~* /app/uploads/.*\.php$ { + location ~* /{{ item.value.upload_path | default('app/uploads') }}/.*\.php$ { deny all; } {% endblock %}