1. 程式人生 > >zabbix安全方面配置

zabbix安全方面配置

安全 zabbix

1、Nginx用戶認證配置,添加多一層訪問認證

http://www.ttlsa.com/nginx/nginx-basic-http-authentication/


2、useragent限制(防刷),

http://blog.csdn.net/qq_22929803/article/details/50724662


3、請求數限制

http://www.jb51.net/article/120185.htm


4、Nginx黑白名單IP配置


5、配置域名訪問(直接域名訪問)

http://www.jb51.net/article/93756.htm


直接域名訪問即

www.yhtzabbix.com/zabbix 改為

www.yhtzabbix.com直接訪問


本地host配置

公網Ip 域名

4.4.4.4 www.yhtzabbix.com


紅色為域名配置

藍色為直接域名訪問

紫色為黑白名單配置


user www;

worker_processes 1;

events {

worker_connections 1024;

}

http {

include mime.types;

default_type application/octet-stream;

sendfile on;

keepalive_timeout 65;

server {

listen 80;

server_name www.yhtzabbix.com;

if ($host != ‘www.yhtzabbix.com‘) {

rewrite ^/(.*)$ http://yht1990.blog.51cto.com/$1 permanent;

}

location / {

#root html;

root /usr/local/nginx/html/zabbix/;

index index.php index.html index.htm;

}

location ~ \.php$ {

#root html;

root /usr/local/nginx/html/zabbix/;

allow 119.130.231.201;

deny all;

fastcgi_pass 127.0.0.1:9000;

fastcgi_index index.php;fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

#auth_basic "nginx basic http test for ttlsa.com";

#auth_basic_user_file conf/htpasswd;

#autoindex on;

include fastcgi_params;

}

error_page 500 502 503 504 /50x.html;

location = /50x.html {

root html;

}

}

}


本文出自 “YHT的運維筆記” 博客,請務必保留此出處http://yht1990.blog.51cto.com/9014030/1979268

zabbix安全方面配置