X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server-configs%2Fnginx%2Fsites-enabled%2Fmctxconfig;fp=server-configs%2Fnginx%2Fsites-enabled%2Fmctxconfig;h=82d972a3d5651bf783195d2e10e7fa6066e2d109;hb=3b075e3cade9dcd625fab07a713856f657bb2230;hp=149115250b007dd22513e3dbb3fe3f2c4eb266ee;hpb=a7ce111ea751bbddf9b5d9659c50a0ca720e1bbf;p=matches%2FMCTX3420.git diff --git a/server-configs/nginx/sites-enabled/mctxconfig b/server-configs/nginx/sites-enabled/mctxconfig index 1491152..82d972a 100644 --- a/server-configs/nginx/sites-enabled/mctxconfig +++ b/server-configs/nginx/sites-enabled/mctxconfig @@ -2,7 +2,7 @@ server { listen 80; #Change this to match your root directory - root /usr/share/nginx/html; + root /usr/share/nginx/www; index index.php index.html index.htm; # Make site accessible from http://localhost/ @@ -70,6 +70,12 @@ server { default_type text/plain; } + #Program error log + location ^~ /api/errorlog { + alias /var/log/mctxserv-error.log; + default_type text/plain; + } + location ~ ^/api/?([^?]*) { fastcgi_pass 127.0.0.1:9005; fastcgi_param DOCUMENT_URI_LOCAL $1;