fix nginx.conf

This commit is contained in:
Christian Hagenest
2024-05-18 17:13:58 +02:00
committed by missytake
parent dcb614911a
commit 505ad36b36

View File

@@ -2,7 +2,6 @@ user www-data;
worker_processes auto;
pid /run/nginx.pid;
error_log stderr;
access_log syslog:server=unix:/dev/log combined;
events {
worker_connections 768;
@@ -36,6 +35,8 @@ http {
server_name _;
access_log syslog:server=unix:/dev/log;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
@@ -81,5 +82,6 @@ http {
listen [::]:443 ssl;
server_name www.{{ config.domain_name }};
return 301 $scheme://{{ config.domain_name }}$request_uri;
access_log syslog:server=unix:/dev/log;
}
}