zabbxi 中
nginx 配置文件
- worker_processes 1;
- events {worker_connections 1024;}
- http {
- include mime.types;
- default_type application/octet-stream;
- sendfile on;
- keepalive_timeout 65;
- error_log /app/logs/nginx_error.log;
- log_format main '$remote_addr - $remote_user [$time_local]"$request"''$status $body_bytes_sent "$http_referer" ''"$http_user_agent""$http_x_forwarded_for"';
- include extra/zabbix.conf;
- }
zabbix 配置文件
- server {
- listen 80;
- server_name localhost;
- root /app/html/zabbix;
- index index.php index.html index.htm;
- access_log /app/logs/zabbix_access.log main;
- location ~ .*\.(php|php5)?$ {
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- include fastcgi.conf;
- }
- }
来源: http://www.bubuko.com/infodetail-2631422.html