Files
wordpress/rootfs/etc/nginx/sites-available/app.conf

32 lines
559 B
Plaintext

server {
listen 80;
listen [::]:80;
server_name ;
set $base /var/www;
root $base/html;
# security
include nginxconfig.io/security.conf;
# logging
access_log /var/log/nginx/app-access.log;
error_log /var/log/nginx/app-error.log warn;
# index files
index index.php index.html index.htm index.nginx-debian.html;
# index.php fallback
location / {
try_files $uri $uri/ /index.php?$query_string;
}
# handle .php
location ~ \.php$ {
include nginxconfig.io/php_fastcgi.conf;
}
# additional config
include nginxconfig.io/general.conf;
}