Files
wordpress-skeleton/nginx/wordpress

16 lines
318 B
Plaintext
Raw Normal View History

2025-10-09 18:45:38 -07:00
server {
2025-10-09 20:53:39 -07:00
listen 80;
server_name example.com;
2025-10-09 18:45:38 -07:00
2025-10-09 21:43:19 -07:00
root /home/debian/example.com/web;
2025-10-09 20:53:39 -07:00
index index.php index.htm index.html;
2025-10-09 18:45:38 -07:00
2025-10-09 20:53:39 -07:00
# Prevent PHP scripts from being executed inside the uploads folder.
location ~* /app/uploads/.*.php$ {
deny all;
}
2025-10-09 18:45:38 -07:00
2025-10-09 20:53:39 -07:00
location / {
try_files $uri $uri/ /index.php?$args;
}
2025-10-09 18:45:38 -07:00
}