[Fixes #1158] Split nginx logs by $APP

* nginx access logs to /var/log/nginx/${APP}-access.log
 * nginx error logs to /var/log/nginx/${APP}-error.log
This commit is contained in:
Andy Chambers
2015-05-24 23:53:24 -07:00
parent 3bf68616ad
commit eedb05d656
3 changed files with 24 additions and 1 deletions

View File

@@ -2,6 +2,9 @@ server {
listen [::]:80;
listen 80;
server_name $NOSSL_SERVER_NAME;
access_log /var/log/nginx/${APP}-access.log;
error_log /var/log/nginx/${APP}-error.log;
location / {
proxy_pass http://$APP;
proxy_http_version 1.1;