equal
deleted
inserted
replaced
|
1 server { |
|
2 listen 80; |
|
3 listen [::]:80; |
|
4 # server_name myapp.local www.myapp.local; |
|
5 server_name localhost 127.0.0.1; |
|
6 |
|
7 root /var/www/html/web; |
|
8 index index.php; |
|
9 |
|
10 access_log /var/log/nginx/access.log; |
|
11 error_log /var/log/nginx/error.log; |
|
12 |
|
13 location / { |
|
14 try_files $uri $uri/ /index.php?$args; |
|
15 } |
|
16 |
|
17 location ~ \.php$ { |
|
18 try_files $uri =404; |
|
19 fastcgi_split_path_info ^(.+\.php)(/.+)$; |
|
20 fastcgi_pass wp:9000; |
|
21 fastcgi_index index.php; |
|
22 include fastcgi_params; |
|
23 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; |
|
24 fastcgi_param PATH_INFO $fastcgi_path_info; |
|
25 } |
|
26 } |