SHOW:
|
|
- or go back to the newest paste.
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; |
10 | + | fastcgi_split_path_info ^(.+\.php)(/.+)$; |
11 | fastcgi_pass 127.0.0.1:9000; | |
12 | - | fastcgi_param SCRIPT_FILENAME $request_filename; |
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 | } |