Advertisement
Guest User

Untitled

a guest
Apr 19th, 2017
61
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.         include ./fastcgi.conf;
  11.         fastcgi_pass 127.0.0.1:9000;
  12.         fastcgi_param SCRIPT_FILENAME $request_filename;
  13.     }
  14.  
  15.     # block access to .htaccess files
  16.     location ~ /\.ht {
  17.         deny all;
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement