From 392f914073006fea9e03d2e13a3e8e6c519694c1 Mon Sep 17 00:00:00 2001 From: Jeremy Tan Date: Mon, 30 Sep 2013 14:21:38 +0800 Subject: [PATCH] fix nginx config to only match the log paths exactly --- server-configs/nginx/sites-enabled/mctxconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server-configs/nginx/sites-enabled/mctxconfig b/server-configs/nginx/sites-enabled/mctxconfig index 1be361a..97e46b6 100644 --- a/server-configs/nginx/sites-enabled/mctxconfig +++ b/server-configs/nginx/sites-enabled/mctxconfig @@ -81,13 +81,13 @@ server { } #Program log - location ^~ /api/log { + location = /api/log { alias /var/log/mctxserv.log; default_type text/plain; } #Program error log - location ^~ /api/errorlog { + location = /api/errorlog { alias /var/log/mctxserv-error.log; default_type text/plain; } -- 2.20.1