Skip to content

Commit 76aea48

Browse files
Nicolas Guerrierandypost
authored andcommitted
Updating nginx configuration to forward errors (403, 404) to application
http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_intercept_errors
1 parent 4cfc1e9 commit 76aea48

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

11/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ http {
1313
default_type application/octet-stream;
1414
fastcgi_buffers 256 4k;
1515
fastcgi_buffer_size 32k;
16-
fastcgi_intercept_errors on;
16+
fastcgi_intercept_errors off;
1717
fastcgi_read_timeout 900;
1818
include fastcgi_params;
1919
access_log /proc/self/fd/2;

14/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ http {
1717
default_type application/octet-stream;
1818
fastcgi_buffers 256 4k;
1919
fastcgi_buffer_size 32k;
20-
fastcgi_intercept_errors on;
20+
fastcgi_intercept_errors off;
2121
fastcgi_read_timeout 900;
2222
include fastcgi_params;
2323
access_log /proc/self/fd/2;

16/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ http {
1717
default_type application/octet-stream;
1818
fastcgi_buffers 256 4k;
1919
fastcgi_buffer_size 32k;
20-
fastcgi_intercept_errors on;
20+
fastcgi_intercept_errors off;
2121
fastcgi_read_timeout 900;
2222
include fastcgi_params;
2323
access_log /proc/self/fd/2;

0 commit comments

Comments
 (0)