Moved SPA to port 4000 #CORD-712

Change-Id: Ic637222b6a15419e5f2629c4ceacc19394f0aa3a
diff --git a/nginx.conf b/nginx.conf
index cca72d5..6150ae8 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -1,21 +1,28 @@
 server {
-    listen       81;
+    listen       4000;
     server_name  localhost;
 
     #charset koi8-r;
-    #access_log  /var/log/nginx/log/host.access.log  main;
+    access_log  /var/log/nginx/log/xos-spa-gui.access.log  main;
+    error_log  /var/log/nginx/log/xos-spa-gui.error.log  warn;
 
     location / {
         root   /var/www/dist;
         index  index.html index.htm;
     }
 
-    location /api {
+    # Redirect for FE config
+    location /spa {
+        root   /var/www/dist;
+        index  index.html index.htm;
+    }
+
+    location /spa/api {
         resolver 127.0.0.1 valid=30s;
         proxy_pass http://xos-rest-gw:3000;
     }
 
-    location /socket.io {
+    location /spa/socket.io {
         resolver 127.0.0.1 valid=30s;
         proxy_pass http://xos-rest-gw:3000;
     }