Rev 948 | Details | Compare with Previous | 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 | |||
948 | daniel-mar | 7 | # /etc/nginx/nginx.conf |
8 | # ..... |
||
9 | # http { |
||
10 | # ..... |
||
11 | # server { |
||
12 | # ..... |
||
13 | # include /var/www/html/oidplus/nginx.conf; |
||
14 | # } |
||
15 | # ..... |
||
16 | # } |
||
17 | # ..... |
||
18 | |||
275 | daniel-mar | 19 | # When you are done, please verify that the file |
1207 | daniel-mar | 20 | # http://...../includes/edition.ini can't be |
275 | daniel-mar | 21 | # read using your web browser. |
22 | # You should see the HTTP 403 error message. |
||
23 | |||
24 | # --- |
||
25 | |||
26 | # If you get HTTP error "502 Bad Gateway" with NGINX, or the error log message |
||
27 | # "upstream sent too big header while reading response header from upstream", |
||
276 | daniel-mar | 28 | # then the following settings might solve the problem: |
275 | daniel-mar | 29 | |
30 | proxy_intercept_errors on; |
||
31 | fastcgi_buffers 16 16k; |
||
32 | fastcgi_buffer_size 32k; |
||
33 | proxy_buffer_size 128k; |
||
34 | proxy_buffers 4 256k; |
||
35 | proxy_busy_buffers_size 256k; |
||
36 | |||
948 | daniel-mar | 37 | # HTTP 404 redirect |
38 | |||
39 | location ~ { |
||
40 | try_files $uri $uri/ /index.php?h404=$uri&$args; |
||
41 | } |
||
42 | |||
275 | daniel-mar | 43 | # Folder restrictions |
44 | |||
294 | daniel-mar | 45 | location /userdata/ { |
290 | daniel-mar | 46 | root html; # <-- You probably need to adjust this |
47 | deny all; |
||
48 | } |
||
49 | |||
476 | daniel-mar | 50 | location /res/ { |
51 | root html; # <-- You probably need to adjust this |
||
52 | deny all; |
||
53 | } |
||
54 | |||
275 | daniel-mar | 55 | location /dev/ { |
56 | root html; # <-- You probably need to adjust this |
||
57 | deny all; |
||
58 | } |
||
59 | |||
60 | location /includes/ { |
||
61 | root html; # <-- You probably need to adjust this |
||
62 | deny all; |
||
63 | } |
||
64 | |||
448 | daniel-mar | 65 | location /setup/includes/ { |
66 | root html; # <-- You probably need to adjust this |
||
67 | deny all; |
||
68 | } |
||
69 | |||
635 | daniel-mar | 70 | location /plugins/viathinksoft/publicPages/100_whois/whois/cli/ { |
275 | daniel-mar | 71 | root html; # <-- You probably need to adjust this |
72 | deny all; |
||
73 | } |