Subversion Repositories oidplus

Rev

Rev 294 | Rev 476 | Go to most recent revision | 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
 
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",
276 daniel-mar 16
# then the following settings might solve the problem:
275 daniel-mar 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
 
294 daniel-mar 27
location /userdata/ {
290 daniel-mar 28
	root html;  # <-- You probably need to adjust this
29
	deny all;
30
}
31
 
275 daniel-mar 32
location /dev/ {
33
	root html;  # <-- You probably need to adjust this
34
	deny all;
35
}
36
 
37
location /includes/ {
38
	root html;  # <-- You probably need to adjust this
39
	deny all;
40
}
41
 
448 daniel-mar 42
location /setup/includes/ {
43
	root html;  # <-- You probably need to adjust this
44
	deny all;
45
}
46
 
275 daniel-mar 47
location /plugins/publicPages/100_whois/whois/cli/ {
48
	root html;  # <-- You probably need to adjust this
49
	deny all;
50
}