20 lines
486 B
Plaintext
20 lines
486 B
Plaintext
server {
|
|
listen 80;
|
|
server_name {SERVER_NAMES};
|
|
index index.php index.html index.htm default.php default.htm default.html;
|
|
root {ROOT_PATH};
|
|
|
|
# Error pages
|
|
error_page 404 /404.html;
|
|
error_page 502 /502.html;
|
|
|
|
{FORCE_HTTPS_BLOCK}
|
|
|
|
# ACME, redirects, optional auth, PHP hardening, app (PHP static or reverse proxy)
|
|
{LOCATION_BUNDLE}
|
|
|
|
access_log {LOGS_PATH}/{SITE_NAME}.log;
|
|
error_log {LOGS_PATH}/{SITE_NAME}.error.log;
|
|
}
|
|
{SSL_SERVER_BLOCK}
|