Advertisement
Guest User

Untitled

a guest
Apr 19th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. location /app {
  2.     alias /path/to/folder/lara/public/;
  3.     index index.php index.html index.htm;
  4.  
  5.     location / {
  6.         try_files $uri $uri/ /index.php?$query_string;
  7.     }
  8.  
  9.     location ~ \.php$ {
  10.         fastcgi_split_path_info ^(.+\.php)(/.+)$;
  11.         fastcgi_pass 127.0.0.1:9000;
  12.         fastcgi_index index.php;
  13.         include ./fastcgi.conf;
  14.     }
  15.  
  16.     # block access to .htaccess files
  17.     location ~ /\.ht {
  18.         deny all;
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement