mirror of https://github.com/midoks/mdserver-web
pull/618/head
parent
e94dc60f28
commit
6628e135fc
@ -0,0 +1,51 @@ |
||||
server |
||||
{ |
||||
# reuseport 只能在一个server出现一次 |
||||
listen {$ZABBIX_PORT}; |
||||
server_name 127.0.0.1; |
||||
index index.php index.html index.htm default.php default.htm default.html; |
||||
root {$ZABBIX_ROOT}; |
||||
|
||||
#SSL-START |
||||
#error_page 404/404.html; |
||||
#SSL-END |
||||
|
||||
#301-START |
||||
|
||||
#PROXY-START |
||||
|
||||
#ERROR-PAGE-START |
||||
#error_page 404 /404.html; |
||||
#error_page 502 /502.html; |
||||
#ERROR-PAGE-END |
||||
|
||||
#PHP-INFO-START |
||||
include ${SERVER_PATH}/php/conf/enable-php-80.conf; |
||||
#PHP-INFO-END |
||||
|
||||
#REWRITE-START |
||||
include ${SERVER_PATH}/nginx/rewrite/zabbix.conf; |
||||
#REWRITE-END |
||||
|
||||
|
||||
#禁止访问的文件或目录 |
||||
location ~ ^/(\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md) |
||||
{ |
||||
return 404; |
||||
} |
||||
|
||||
#一键申请SSL证书验证目录相关设置 |
||||
location ~ \.well-known{ |
||||
allow all; |
||||
} |
||||
|
||||
location ~ .*\\.(gif|jpg|jpeg|png|bmp|swf|js|css)$ |
||||
{ |
||||
expires 30d; |
||||
error_log /dev/null; |
||||
access_log /dev/null; |
||||
} |
||||
|
||||
access_log /www/wwwlogs/zabbix.log main; |
||||
error_log /www/wwwlogs/zabbix.error.log; |
||||
} |
Loading…
Reference in new issue