Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name localhost;
- root /usr/share/zabbix;
- charset utf-8;
- access_log /var/log/nginx/access_zabbix.log;
- error_log /var/log/nginx/error_zabbix.log;
- location / {
- index index.php index.html index.htm;
- }
- location ~ \.php$ {
- fastcgi_pass unix:/run/php/php7.2-fpm.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- # Запрет доступа к .htaccess файлам, нужно если корневая директория Apache
- # совпадает с корневой директория NGINX
- location ~ /\.ht {
- deny all;
- }
- # Запрет доступа к файлам Zabbix
- location ~* /(?:api|conf|include)/ {
- return 301 $server_name/index.php;
- }
- }
Add Comment
Please, Sign In to add comment