Closed audetcameron closed 4 years ago
In forge when trying to add
location = / { try_files /page-cache/pc__index__pc.html /index.php?$query_string; } location / { try_files $uri $uri/ /page-cache/$uri.html /index.php?$query_string; }
I get an nginx error "duplicate location /
Is this a new problem with NGINX? Is there a way to account for the home page and all other pages? Thanks in advance.
I'm silly, not your fault. We were using
rewrite ^/(.*)/$ /$1 permanent;
to end trailing slashes, this was causing the issue.
In forge when trying to add
I get an nginx error "duplicate location /
Is this a new problem with NGINX? Is there a way to account for the home page and all other pages? Thanks in advance.