Advertisement
puncoz

nginx.conf

Jun 19th, 2018
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2.     listen 80 default_server;
  3.     listen [::]:80;
  4.  
  5.     server_name _;
  6.     root /var/ww/html/dts/public;
  7.     index index.html index.php;
  8.  
  9.     location / {
  10.         try_files $uri $uri/ /index.php?$query_string;
  11.     }
  12.  
  13.     location ~ \.php$ {
  14.         try_files $uri =404;
  15.         fastcgi_split_path_info ^(.+\.php)(/.+)$;
  16.         fastcgi_pass unix:/run/php/php7.2-fpm-zlesastage.sock;
  17.         fastcgi_index index.php;
  18.         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  19.         include fastcgi_params;
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement