.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
upstream txecs{
server 127.0.0.1:8080;
}
server{
listen 80;
server_name zabbix.txzs.org;
access_log /var/log/nginx/web1_access.log;

location / {
proxy_pass http://txecs;
proxy_read_timeout 300;
proxy_connect_timeout 300;
proxy_redirect off;

proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
}
}