Guest User

Untitled

a guest
Feb 21st, 2023
632
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.90 KB | Software | 0 0
  1. server {
  2.     listen 443 http2 ssl;
  3.     server_name zabbix.server.ru;
  4.     access_log /var/log/nginx/zabbix.server.ru-access.log main;
  5.     error_log /var/log/nginx/zabbix.server.ru-error.log;
  6.     root /usr/share/zabbix;
  7.    
  8.     ssl_certificate /etc/letsencrypt/live/zabbix.server.ru/fullchain.pem;
  9.     ssl_certificate_key /etc/letsencrypt/live/zabbix.server.ru/privkey.pem;
  10.    
  11.     location /.well-known {
  12.     root /tmp;
  13.     }
  14.  
  15.     location / {
  16.     index index.php index.html;
  17.     allow 1.1.1.1/32;
  18.     allow 2.2.2.2/32;
  19.     allow 3.3.3.3/32;
  20.     allow 127.0.0.1/32;
  21.     deny  all;
  22.     }
  23.  
  24.     location ~ \.php$ {
  25.     fastcgi_pass unix:/run/php-fpm/zabbix.sock;
  26.     fastcgi_index index.php;
  27.     fastcgi_param SCRIPT_FILENAME  $document_root$fastcgi_script_name;
  28.     include fastcgi_params;
  29.     allow 1.1.1.1/32;
  30.     allow 2.2.2.2/32;
  31.     allow 3.3.3.3/32;
  32.     allow 127.0.0.1/32;
  33.     deny  all;
  34.     }
  35. }
Tags: zabbix nginx
Advertisement
Add Comment
Please, Sign In to add comment