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/
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;