Rev 276 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
275 | daniel-mar | 1 | |
2 | # To enable this configuration file in NGINX, you |
||
3 | # need to include this file in your master configuration file |
||
4 | # using the "include" command. You probably need |
||
5 | # to change "root" lines. |
||
6 | |||
7 | # When you are done, please verify that the file |
||
8 | # http://...../includes/config_values.txt can't be |
||
9 | # read using your web browser. |
||
10 | # You should see the HTTP 403 error message. |
||
11 | |||
12 | # --- |
||
13 | |||
14 | # If you get HTTP error "502 Bad Gateway" with NGINX, or the error log message |
||
15 | # "upstream sent too big header while reading response header from upstream", |
||
16 | # following settings might solve the problem: |
||
17 | |||
18 | proxy_intercept_errors on; |
||
19 | fastcgi_buffers 16 16k; |
||
20 | fastcgi_buffer_size 32k; |
||
21 | proxy_buffer_size 128k; |
||
22 | proxy_buffers 4 256k; |
||
23 | proxy_busy_buffers_size 256k; |
||
24 | |||
25 | # Folder restrictions |
||
26 | |||
27 | location /dev/ { |
||
28 | root html; # <-- You probably need to adjust this |
||
29 | deny all; |
||
30 | } |
||
31 | |||
32 | location /includes/ { |
||
33 | root html; # <-- You probably need to adjust this |
||
34 | deny all; |
||
35 | } |
||
36 | |||
37 | location /plugins/publicPages/100_whois/whois/cli/ { |
||
38 | root html; # <-- You probably need to adjust this |
||
39 | deny all; |
||
40 | } |