mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2025-12-08 02:21:32 +01:00
32 lines
559 B
Plaintext
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;
|
|
}
|