From bc6bd27d90ad0b91d4c6d252a1b4142fdda0e0e5 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Mon, 22 Oct 2018 00:00:43 +0200 Subject: [PATCH] chg: [apache] custom rules are now before the content so as to add proxy rules if necessary --- apache/lib/common | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apache/lib/common b/apache/lib/common index fec0174..a1b8632 100644 --- a/apache/lib/common +++ b/apache/lib/common @@ -474,6 +474,8 @@ __vhost_full_vhost_statement() { $(__vhost_head_statement "$protocol" | prefix " ") +$(__vhost_custom_rules | prefix " ") + $(__vhost_content_statement "$protocol" | prefix " ") ## Forbid any cache, this is only usefull on dev server. @@ -482,7 +484,6 @@ $(__vhost_content_statement "$protocol" | prefix " ") #Header set Access-Control-Allow-Methods "POST, GET, OPTIONS" #Header set Access-Control-Allow-Headers "origin, content-type, accept" $([ "$protocol" == "https" ] && __vhost_ssl_statement | prefix " ") -$(__vhost_custom_rules | prefix " ") EOF