Advertisement
nebukad

default.nginx

Apr 20th, 2017
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. server {
  3.         listen       80;
  4.         server_name  dev.lokalku.com;
  5.  
  6.         location / {
  7.             root  /Users/ororimac/Site;
  8.             try_files  $uri  $uri/  /index.php?$args ;
  9.             index  index.php;
  10.         }
  11.  
  12.         # configure *.PHP requests
  13.         location ~ \.php$ {
  14.             root  /Users/ororimac/Site;
  15.             try_files  $uri  $uri/  /index.php?$args ;
  16.             index  index.html index.htm index.php;
  17.             fastcgi_param PATH_INFO $fastcgi_path_info;
  18.             fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
  19.             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  20.  
  21.             fastcgi_pass 127.0.0.1:9000;
  22.             fastcgi_index index.php;
  23.             fastcgi_split_path_info ^(.+\.php)(/.+)$;
  24.             fastcgi_intercept_errors on;
  25.             include fastcgi_params;
  26.         }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement