Update nginx/wordpress
This commit is contained in:
@@ -5,13 +5,9 @@ server {
|
||||
root /var/www/example.com/web;
|
||||
index index.php index.htm index.html;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$args;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
include snippets/fastcgi-php.conf;
|
||||
fastcgi_pass unix:/var/run/php/php8.4-fpm.sock;
|
||||
fastcgi_pass unix:/run/php/php8.4-fpm.sock;
|
||||
}
|
||||
|
||||
# Prevent PHP scripts from being executed inside the uploads folder.
|
||||
|
||||
Reference in New Issue
Block a user