Working on logging

This commit is contained in:
Ric Harvey
2015-07-10 11:17:07 +01:00
parent 179849b556
commit 2803363c8d
2 changed files with 7 additions and 3 deletions

View File

@@ -11,6 +11,11 @@ server {
# Disable sendfile as per https://docs.vagrantup.com/v2/synced-folders/virtualbox.html # Disable sendfile as per https://docs.vagrantup.com/v2/synced-folders/virtualbox.html
sendfile off; sendfile off;
# Add stdout logging
error_log /dev/stdout info;
access_log /dev/stdout;
location / { location / {
# First attempt to serve request as file, then # First attempt to serve request as file, then
# as directory, then fall back to index.html # as directory, then fall back to index.html
@@ -39,14 +44,12 @@ server {
} }
location ~* \.(jpg|jpeg|gif|png|css|js|ico|xml)$ { location ~* \.(jpg|jpeg|gif|png|css|js|ico|xml)$ {
log_not_found off;
expires 5d; expires 5d;
} }
# deny access to . files, for security # deny access to . files, for security
# #
location ~ /\. { location ~ /\. {
access_log off;
log_not_found off; log_not_found off;
deny all; deny all;
} }

View File

@@ -1,5 +1,6 @@
[unix_http_server] [unix_http_server]
file=/tmp/supervisor.sock ; (the path to the socket file) file=/tmp/supervisor.sock ; (the path to the socket file)
chmod=700
[supervisord] [supervisord]
logfile=/tmp/supervisord.log ; (main log file;default $CWD/supervisord.log) logfile=/tmp/supervisord.log ; (main log file;default $CWD/supervisord.log)
@@ -10,6 +11,7 @@ pidfile=/tmp/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
nodaemon=false ; (start in foreground if true;default false) nodaemon=false ; (start in foreground if true;default false)
minfds=1024 ; (min. avail startup file descriptors;default 1024) minfds=1024 ; (min. avail startup file descriptors;default 1024)
minprocs=200 ; (min. avail process descriptors;default 200) minprocs=200 ; (min. avail process descriptors;default 200)
user=root ;
; the below section must remain in the config file for RPC ; the below section must remain in the config file for RPC
; (supervisorctl/web interface) to work, additional interfaces may be ; (supervisorctl/web interface) to work, additional interfaces may be
@@ -30,7 +32,6 @@ stderr_events_enabled=true
command=tail -f /var/log/php5-fpm.log command=tail -f /var/log/php5-fpm.log
priority=999 priority=999
stdout_events_enabled=true stdout_events_enabled=true
stderr_events_enabled=true
[program:nginx] [program:nginx]
command=/usr/sbin/nginx command=/usr/sbin/nginx