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