Advertisement
Guest User

Untitled

a guest
Oct 7th, 2019
10,538
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2.     listen 127.0.0.1:81;
  3.  
  4.     root /var/www/your.site.com/public_html;
  5.     index index.php;
  6.    
  7.     …...
  8.    
  9.     location / {
  10.         try_files $uri $uri/ /index.php?$args;
  11.     }
  12.  
  13.     location ~ \.php$ {
  14.         include fastcgi_params;
  15.         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  16.         fastcgi_pass unix:/var/run/php7.2-fpm.sock;
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement