Advertisement
Guest User

Untitled

a guest
Apr 27th, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2.         listen       [::]:80;
  3.         server_name  localhost;
  4.  
  5.         access_log  /var/log/nginx/access.log;
  6.         error_log   /var/log/nginx/error.log;
  7.         root    /var/www;
  8.         index   index.php
  9.  
  10.         error_page   500 502 503 504  /50x.html;
  11.         location = /50x.html {
  12.             root   /usr/share/nginx/html;
  13.         }
  14.  
  15.         location / {
  16.             try_files $uri $uri/ /index.php?$args;
  17.         }
  18.  
  19.         location ~ \.php$ {
  20.             try_files $uri =404;
  21.             fastcgi_pass   unix:/var/run/php-fpm/php-fpm.sock;
  22.             fastcgi_index  index.php;
  23.             include        fastcgi.conf;
  24.             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  25.         }
  26.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement