Advertisement
cdelphi78

Untitled

Oct 6th, 2022
708
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.59 KB | None | 0 0
  1. server {
  2.         listen 80;
  3.         listen [::]:80;
  4.  
  5.         root /var/www/servicedesk/html;
  6.         index index.html index.php index.htm index.nginx-debian.html;
  7.  
  8.         server_name 192.168.4.180 www.servicedesk;
  9.  
  10.         location / {
  11.                 try_files $uri $uri/ =404;
  12.     }
  13.  
  14.     location ~ \.php$ {
  15.             include snippets/fastcgi-php.conf;
  16.             fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
  17.         }
  18.  
  19.         location ~ /\.ht {
  20.             deny all;
  21.         }
  22.  
  23.     location /index.php {
  24.    
  25.     if ($remote_addr != 192.168.4.64) {
  26.             rewrite ^ /reconstruction.html;
  27.     }
  28.  
  29.     }
  30.  
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement