nginx/default.conf

21 lines
553 B
Plaintext
Raw Permalink Normal View History

2023-04-11 12:54:05 +00:00
server {
listen 80;
server_name $host;
2023-04-11 13:07:12 +00:00
root /var/www/html;
2023-04-11 12:54:05 +00:00
index index.php index.html index.htm;
client_max_body_size 1G;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
try_files $uri = 404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass wordpress:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
}