From 3cf248cf153b6bffd80e23929b00ec35585225e2 Mon Sep 17 00:00:00 2001 From: Peng Bai Date: Fri, 25 May 2018 02:57:52 -0500 Subject: [PATCH] No regex matching for location --- deployment/nginx/huginn | 3 +-- deployment/nginx/huginn-ssl | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/deployment/nginx/huginn b/deployment/nginx/huginn index 8e6b8413..eedc933e 100644 --- a/deployment/nginx/huginn +++ b/deployment/nginx/huginn @@ -59,8 +59,7 @@ server { ## WARNING: If you are using relative urls remove the block below ## See config/application.rb under "Relative url support" for the list of ## other files that need to be changed for relative url support - location ~ ^/(assets)/ { - root /home/huginn/huginn/public; + location /assets/ { gzip_static on; # to serve pre-gzipped version expires max; add_header Cache-Control public; diff --git a/deployment/nginx/huginn-ssl b/deployment/nginx/huginn-ssl index 7da9e801..addf2be0 100644 --- a/deployment/nginx/huginn-ssl +++ b/deployment/nginx/huginn-ssl @@ -108,8 +108,7 @@ server { ## WARNING: If you are using relative urls remove the block below ## See config/application.rb under "Relative url support" for the list of ## other files that need to be changed for relative url support - location ~ ^/(assets)/ { - root /home/huginn/huginn/public; + location /assets/ { gzip_static on; # to serve pre-gzipped version expires max; add_header Cache-Control public;