Rev 635 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 635 | Rev 948 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | # To enable this configuration file in NGINX, you |
2 | # To enable this configuration file in NGINX, you |
3 | # need to include this file in your master configuration file |
3 | # need to include this file in your master configuration file |
4 | # using the "include" command. You probably need |
4 | # using the "include" command. You probably need |
5 | # to change "root" lines. |
5 | # to change "root" lines. |
6 | 6 | ||
- | 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 | ||
7 | # When you are done, please verify that the file |
19 | # When you are done, please verify that the file |
8 | # http://...../includes/config_values.txt can't be |
20 | # http://...../includes/config_values.txt can't be |
9 | # read using your web browser. |
21 | # read using your web browser. |
10 | # You should see the HTTP 403 error message. |
22 | # You should see the HTTP 403 error message. |
11 | 23 | ||
Line 20... | Line 32... | ||
20 | fastcgi_buffer_size 32k; |
32 | fastcgi_buffer_size 32k; |
21 | proxy_buffer_size 128k; |
33 | proxy_buffer_size 128k; |
22 | proxy_buffers 4 256k; |
34 | proxy_buffers 4 256k; |
23 | proxy_busy_buffers_size 256k; |
35 | proxy_busy_buffers_size 256k; |
24 | 36 | ||
- | 37 | # HTTP 404 redirect |
|
- | 38 | ||
- | 39 | location ~ { |
|
- | 40 | try_files $uri $uri/ /index.php?h404=$uri&$args; |
|
- | 41 | } |
|
- | 42 | ||
25 | # Folder restrictions |
43 | # Folder restrictions |
26 | 44 | ||
27 | location /userdata/ { |
45 | location /userdata/ { |
28 | root html; # <-- You probably need to adjust this |
46 | root html; # <-- You probably need to adjust this |
29 | deny all; |
47 | deny all; |