Store logs to /data/logs

This commit is contained in:
Pierre Jaury
2016-02-21 19:48:40 +01:00
parent 9fc202006c
commit caab793716
3 changed files with 21 additions and 12 deletions

View File

@@ -1,17 +1,17 @@
user www-data;
worker_processes 1;
error_log /var/log/nginx/error.log info;
pid /var/run/nginx.pid;
error_log /data/logs/nginx-error.log info;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /var/log/nginx/access.log;
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /data/logs/nginx.log;
sendfile on;
keepalive_timeout 65;
server_tokens off;