Files
wordpress-skeleton/nginx/wordpress
2025-10-09 21:58:41 -07:00

16 lines
314 B
Plaintext

server {
listen 80;
server_name example.com;
root /var/www/example.com/web;
index index.php index.htm index.html;
# Prevent PHP scripts from being executed inside the uploads folder.
location ~* /app/uploads/.*.php$ {
deny all;
}
location / {
try_files $uri $uri/ /index.php?$args;
}
}