SHARE
TWEET

Untitled

a guest Nov 14th, 2017 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2.     listen 80;
  3.  
  4.     root /var/www/example.com;
  5.     index index.html;
  6.  
  7.     server_name example.com www.example.com;
  8.  
  9.     location / {
  10.         try_files $uri $uri/ =404;
  11.     }
  12.  
  13.     location ~ \.php$ {
  14.         try_files $uri =404;
  15.         fastcgi_split_path_info ^(.+\.php)(/.+)$;
  16.         fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
  17.         fastcgi_index index.php;
  18.         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  19.         include fastcgi_params;
  20.     }
  21. }
RAW Paste Data
Top