Advertisement
zed_com

/etc/nginx/conf.d/default.conf

Dec 28th, 2018
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.58 KB | None | 0 0
  1. server {
  2.     listen 80 default_server;
  3.     listen [::]:80 default_server;
  4.  
  5.     fastcgi_buffers 16 16k;
  6.     fastcgi_buffer_size 32k;
  7.  
  8.     root /home/www;
  9.     index index.php index.html index.htm index.nginx-debian.html;
  10.  
  11.     server_name _;
  12.  
  13.     location / {
  14.         try_files $uri $uri/ =404;
  15.     }
  16.     location ~ \.php$ {
  17.            try_files $uri =404;
  18.            fastcgi_pass unix:/run/php/php5.6-fpm.sock;
  19.            fastcgi_index index.php;
  20.            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  21.            include fastcgi_params;
  22.  
  23.      }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement