moved nginx logs to /data/logs

This commit is contained in:
2025-07-30 11:39:28 +02:00
parent 21153f7909
commit 0daadbf0f1
7 changed files with 8 additions and 12 deletions

View File

@@ -7,8 +7,6 @@ server {
root /data/www; root /data/www;
# server_name localhost; # server_name localhost;
#access_log /var/log/nginx/host.access.log main;
location / { location / {
index index.html index.htm; index index.html index.htm;

View File

@@ -7,8 +7,6 @@ server {
root /data/www; root /data/www;
# server_name localhost; # server_name localhost;
#access_log /var/log/nginx/host.access.log main;
location / { location / {
index index.php index.html index.htm; index index.php index.html index.htm;

View File

@@ -9,7 +9,7 @@ worker_processes auto;
pcre_jit on; pcre_jit on;
# Configures default error logger. # Configures default error logger.
error_log /var/log/nginx/error.log warn; error_log /data/logs/nginx-error.log warn;
# Includes files with directives to load dynamic modules. # Includes files with directives to load dynamic modules.
include /etc/nginx/modules/*.conf; include /etc/nginx/modules/*.conf;
@@ -96,7 +96,7 @@ http {
'"$http_user_agent" "$http_x_forwarded_for"'; '"$http_user_agent" "$http_x_forwarded_for"';
# Sets the path, format, and configuration for a buffered log write. # Sets the path, format, and configuration for a buffered log write.
access_log /var/log/nginx/access.log main; access_log /data/logs/nginx-access.log main;
# Includes virtual hosts configs. # Includes virtual hosts configs.

View File

@@ -124,5 +124,9 @@ EOF
touch /app/htpasswd touch /app/htpasswd
# make sure nginx can log
mkdir -p /data/logs
chown -R "${USERNAME}" /data/logs
echo starting nginx echo starting nginx
nginx nginx

View File

@@ -7,8 +7,6 @@ server {
root /data/www; root /data/www;
# server_name localhost; # server_name localhost;
#access_log /var/log/nginx/host.access.log main;
location / { location / {
index index.html index.htm; index index.html index.htm;

View File

@@ -7,8 +7,6 @@ server {
root /data/www; root /data/www;
# server_name localhost; # server_name localhost;
#access_log /var/log/nginx/host.access.log main;
location / { location / {
index index.php index.html index.htm; index index.php index.html index.htm;

View File

@@ -9,7 +9,7 @@ worker_processes auto;
pcre_jit on; pcre_jit on;
# Configures default error logger. # Configures default error logger.
error_log /var/log/nginx/error.log warn; error_log /data/logs/nginx-error.log warn;
# Includes files with directives to load dynamic modules. # Includes files with directives to load dynamic modules.
include /etc/nginx/modules/*.conf; include /etc/nginx/modules/*.conf;
@@ -95,7 +95,7 @@ http {
'"$http_user_agent" "$http_x_forwarded_for"'; '"$http_user_agent" "$http_x_forwarded_for"';
# Sets the path, format, and configuration for a buffered log write. # Sets the path, format, and configuration for a buffered log write.
access_log /var/log/nginx/access.log main; access_log /data/logs/nginx-access.log main;
# Includes virtual hosts configs. # Includes virtual hosts configs.