Zabbix 安装部署

󰃭 2022-08-05

zabbix-web 配置

server
{
	listen 8051;
	server_name 127.0.0.1;
	ssl on;
	ssl_certificate /etc/nginx/ssl/3151xxx.pem;
	ssl_certificate_key /etc/nginx/ssl/3151xxx.key;
	ssl_prefer_server_ciphers on;

	if ($http_user_agent ~* "(Googlebot|Baiduspider|Sosospider)" ) {
		return 403;
	}
	root /usr/share/zabbix;
	index index.php;
	location ~ ".(js|ico|gif|jpg|png|css)$" {
		expires 1w;
	}
	location / {
		fastcgi_ignore_client_abort on;
		fastcgi_pass php-fpm;
		fastcgi_index index.php;
		include fastcgi.conf;
		index index.php;
		if (!-e $request_filename) {
			rewrite . /index.php last;
			break;
		}
	}
}