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