move to fpm

This commit is contained in:
2020-05-23 17:09:29 +02:00
parent bfbf4bbffb
commit a6c5e3fa2f
6 changed files with 77 additions and 26 deletions

39
config/nginx/nginx.conf Normal file
View File

@@ -0,0 +1,39 @@
server {
listen 80;
access_log off;
server_name _;
server_tokens off;
root /var/www/html;
index index.php;
client_max_body_size 512M;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
#NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
include fastcgi.conf;
fastcgi_intercept_errors on;
fastcgi_pass wordpress:9000;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
log_not_found off;
}
}