SHOW:
|
|
- or go back to the newest paste.
1 | server { | |
2 | listen 80 default_server; | |
3 | listen [::]:80 default_server; | |
4 | ||
5 | server_name _; | |
6 | ||
7 | location /assets/images/ { | |
8 | root /home/ankush/fu_main_files/; | |
9 | autoindex off; | |
10 | sendfile on; | |
11 | tcp_nopush on; | |
12 | tcp_nodelay on; | |
13 | keepalive_timeout 100; | |
14 | } | |
15 | ||
16 | location /ecwid_fu_scripts/ { | |
17 | index index.php; | |
18 | root /home/ankush/; | |
19 | - | try_files $uri /index.php$is_args$args; |
19 | + | |
20 | fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
21 | try_files $fastcgi_script_name =404; | |
22 | set $path_info $fastcgi_path_info; | |
23 | fastcgi_param PATH_INFO $path_info; | |
24 | fastcgi_index index.php; | |
25 | include fastcgi_params; | |
26 | fastcgi_pass unix:/run/php/php7.0-fpm.sock; | |
27 | } | |
28 | ||
29 | location / { | |
30 | proxy_pass http://localhost:9001; | |
31 | } | |
32 | ||
33 | location ~ \.php$ { | |
34 | fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
35 | try_files $fastcgi_script_name =404; | |
36 | set $path_info $fastcgi_path_info; | |
37 | fastcgi_param PATH_INFO $path_info; | |
38 | fastcgi_index index.php; | |
39 | include fastcgi_params; | |
40 | fastcgi_pass unix:/run/php/php7.0-fpm.sock; | |
41 | } | |
42 | } |