X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server-configs%2Fnginx%2Fsites-enabled%2Fmctxconfig;h=82d972a3d5651bf783195d2e10e7fa6066e2d109;hb=5fd0fd1a48e49e71f9fb8e0d634d4834c451914f;hp=149115250b007dd22513e3dbb3fe3f2c4eb266ee;hpb=ce9b60fc55acd893b58bf84b3f0f7f39cffee079;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;