Browse Source

forgot wp conf

main
Zen 3 years ago
parent
commit
d17942e536
  1. 24
      resources/nginx/wordpress.nginx.conf

24
resources/nginx/wordpress.nginx.conf

@ -0,0 +1,24 @@
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name SERVER_NAME;
root FILE_ROOT;
index index.php;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_intercept_errors on;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
}
}
Loading…
Cancel
Save