From: Jeremy Tan Date: Mon, 30 Sep 2013 06:21:38 +0000 (+0800) Subject: fix nginx config to only match the log paths exactly X-Git-Url: https://git.ucc.asn.au/?p=matches%2FMCTX3420.git;a=commitdiff_plain;h=392f914073006fea9e03d2e13a3e8e6c519694c1 fix nginx config to only match the log paths exactly --- 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; }