Tidy up 404 and fix php logging to stdout
This commit is contained in:
@@ -31,13 +31,16 @@ server {
|
||||
internal;
|
||||
}
|
||||
|
||||
location ^~ /ngd-style.css {
|
||||
alias /var/www/errors/style.css;
|
||||
location ^~ /sad.svg {
|
||||
alias /var/www/errors/sad.svg;
|
||||
access_log off;
|
||||
}
|
||||
|
||||
location ^~ /ngd-sad.svg {
|
||||
alias /var/www/errors/sad.svg;
|
||||
location ^~ /twitter.svg {
|
||||
alias /var/www/errors/twitter.svg;
|
||||
access_log off;
|
||||
}
|
||||
location ^~ /gitlab.svg {
|
||||
alias /var/www/errors/gitlab.svg;
|
||||
access_log off;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,14 +22,17 @@ supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|
||||
serverurl=unix:///dev/shm/supervisor.sock ; use a unix:// URL for a unix socket
|
||||
|
||||
[program:php-fpm]
|
||||
command = /usr/local/sbin/php-fpm --nodaemonize --fpm-config /usr/local/etc/php-fpm.d/www.conf
|
||||
command = /usr/local/sbin/php-fpm --force-stderr --nodaemonize --fpm-config /usr/local/etc/php-fpm.d/www.conf
|
||||
autostart=true
|
||||
autorestart=true
|
||||
priority=5
|
||||
stdout_events_enabled=true
|
||||
stderr_events_enabled=true
|
||||
stdout_logfile=/dev/stdout
|
||||
stdout_logfile_maxbytes=0
|
||||
stderr_logfile=/dev/stderr
|
||||
stderr_logfile_maxbytes=0
|
||||
stopsignal=QUIT
|
||||
|
||||
[program:nginx]
|
||||
command=/usr/sbin/nginx -g "daemon off; error_log /dev/stderr info;"
|
||||
@@ -42,6 +45,7 @@ stdout_logfile=/dev/stdout
|
||||
stdout_logfile_maxbytes=0
|
||||
stderr_logfile=/dev/stderr
|
||||
stderr_logfile_maxbytes=0
|
||||
stopsignal=QUIT
|
||||
|
||||
[include]
|
||||
files = /etc/supervisor/conf.d/*.conf
|
||||
|
||||
Reference in New Issue
Block a user