Files
wordpress-skeleton/nginx/wordpress

21 lines
428 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:58:41 -07:00
root /var/www/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 22:12:14 -07:00
location ~ \.php$ {
include snippets/fastcgi-php.conf;
2025-10-09 22:45:13 -07:00
fastcgi_pass unix:/run/php/php8.4-fpm.sock;
2025-10-09 22:12:14 -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
}