| author | ymh <ymh.work@gmail.com> |
| Sat, 06 Mar 2021 09:11:30 +0100 | |
| changeset 42 | 5bb33f78b519 |
| parent 6 | 36381334b11e |
| permissions | -rw-r--r-- |
| 0 | 1 |
server {
|
2 |
listen 80; |
|
3 |
listen [::]:80; |
|
|
6
36381334b11e
use recherchecontributive.test as domain
ymh <ymh.work@gmail.com>
parents:
0
diff
changeset
|
4 |
server_name recherchecontributive.test www.recherchecontributive.test; |
| 0 | 5 |
|
6 |
root /var/www/html/web; |
|
7 |
index index.php; |
|
8 |
||
9 |
access_log /var/log/nginx/access.log; |
|
10 |
error_log /var/log/nginx/error.log; |
|
11 |
||
12 |
location / {
|
|
13 |
try_files $uri $uri/ /index.php?$args; |
|
14 |
} |
|
15 |
||
16 |
location ~ \.php$ {
|
|
17 |
try_files $uri =404; |
|
18 |
fastcgi_split_path_info ^(.+\.php)(/.+)$; |
|
19 |
fastcgi_pass wp:9000; |
|
20 |
fastcgi_index index.php; |
|
21 |
include fastcgi_params; |
|
22 |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; |
|
23 |
fastcgi_param PATH_INFO $fastcgi_path_info; |
|
24 |
} |
|
25 |
} |