Advertisement
lakmalsamarakkody

/etc/nginx/sites/skeleton.conf

May 30th, 2019
401
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.68 KB | None | 0 0
  1. server {
  2.         listen          80;
  3.         server_name     skeleton.int;
  4.  
  5.         root            /run/media/lakmal/Flex/Documents/dev/sites/skeleton.int/;
  6.  
  7.         location /app {
  8.                 deny    all;
  9.         }
  10.  
  11.         location / {
  12.                 try_files       $uri $uri/ /index.php?route=$uri;
  13.                 index           index.html index.htm index.php;
  14.         }
  15.  
  16.         location ~ \.php$ {
  17.                 include         /etc/nginx/fastcgi_params;
  18.                 fastcgi_pass    unix:/run/php-fpm/php-fpm.sock;
  19.                 fastcgi_index   index.php;
  20.                 fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
  21.      }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement