No regex matching for location

This commit is contained in:
Peng Bai 2018-05-25 02:57:52 -05:00
parent 9cd2f565ec
commit 3cf248cf15
2 changed files with 2 additions and 4 deletions

View file

@ -59,8 +59,7 @@ server {
## WARNING: If you are using relative urls remove the block below ## WARNING: If you are using relative urls remove the block below
## See config/application.rb under "Relative url support" for the list of ## See config/application.rb under "Relative url support" for the list of
## other files that need to be changed for relative url support ## other files that need to be changed for relative url support
location ~ ^/(assets)/ { location /assets/ {
root /home/huginn/huginn/public;
gzip_static on; # to serve pre-gzipped version gzip_static on; # to serve pre-gzipped version
expires max; expires max;
add_header Cache-Control public; add_header Cache-Control public;

View file

@ -108,8 +108,7 @@ server {
## WARNING: If you are using relative urls remove the block below ## WARNING: If you are using relative urls remove the block below
## See config/application.rb under "Relative url support" for the list of ## See config/application.rb under "Relative url support" for the list of
## other files that need to be changed for relative url support ## other files that need to be changed for relative url support
location ~ ^/(assets)/ { location /assets/ {
root /home/huginn/huginn/public;
gzip_static on; # to serve pre-gzipped version gzip_static on; # to serve pre-gzipped version
expires max; expires max;
add_header Cache-Control public; add_header Cache-Control public;