Permalink
Browse files

Item14346: Location prefix match doesn't work

Not sure why, but when matching a location prefix, nginx gets into w
rewrite loop, looking for /bin/view/bin/view/bin/view....  But the
regex form works fine.

Also add an example of the attachment size limit to the config.
suggested in Item14316.
  • Loading branch information...
gac410 committed Mar 25, 2017
1 parent 83dcbc6 commit 7dc472f5fc01bf4314af3e4921d10268c01c5a25
Showing with 4 additions and 2 deletions.
  1. +4 −2 FastCGIEngineContrib/data/System/FastCGIEngineContrib.txt
@@ -1,4 +1,4 @@
-%META:TOPICINFO{author="ProjectContributor" comment="" date="1490124221" format="1.1" version="1"}%
+%META:TOPICINFO{author="ProjectContributor" comment="" date="1490401384" format="1.1" version="1"}%
---+!! <nop>FastCGI Engine Contrib
%$SHORTDESCRIPTION%
@@ -144,6 +144,8 @@ server {
error_log /var/log/nginx/foswiki-error.log;
#error_log /var/log/nginx/foswiki-error.log debug;
+ client_max_body_size 10M; # Set to maximum attachment size, See also ATTACHFILESIZELIMIT
+
location = / {
root $foswiki_root;
rewrite .* /Main/WebHome;
@@ -153,7 +155,7 @@ server {
allow all;
}
- location /bin/ {
+ location ~ ^/bin/ {
gzip off;
#fastcgi_pass unix:/var/run/nginx/foswiki.sock;
fastcgi_pass 127.0.0.1:9000;

0 comments on commit 7dc472f

Please sign in to comment.