CORD-369 update apache2 config to forward UIs

Change-Id: I820d66fe9214970d0cfe6bf9e05b84d41105ffc2
(cherry picked from commit 8fdbf8d9130f823e833515d329f12b0cd4b2bdc6)
diff --git a/roles/head-prologue/files/cord-http.conf b/roles/head-prologue/files/cord-http.conf
new file mode 100644
index 0000000..e3ba9d8
--- /dev/null
+++ b/roles/head-prologue/files/cord-http.conf
@@ -0,0 +1,49 @@
+<IfModule proxy_module>
+    ProxyPreserveHost on
+
+    # Map /fabric to the onos instance that is controlling the leaf
+    #     spine fabric
+    <Location /fabric/>
+        ProxyPass http://onos-fabric:8181/
+        ProxyPassReverse http://onos-fabric:8181/
+        ProxyPassReverseCookiePath  "/"  "/fabric/"
+        Header edit Location "(^http[s]?://[^/]*)(\.*)" "$1/fabric$2"
+    </Location>
+
+    <Location /fabric/onos/ui/websock/>
+        ProxyPass "ws://onos-fabric:8181/onos/ui/websock/" disablereuse=on
+    </Location>
+
+    # Map /vtn to the onos instance that is controller the cordvtn
+    #     application
+    <Location /vtn/>
+        ProxyPass http://onos-cord:8181/
+        ProxyPassReverse http://onos-cord:8181/
+        ProxyPassReverseCookiePath  "/"  "/vtn/"
+        Header edit Location "(^http[s]?://[^/]*)(\.*)" "$1/vtn$2"
+    </Location>
+
+    <Location /vtn/onos/ui/websock/>
+        ProxyPass "ws://onos-cord:8181/onos/ui/websock/" disablereuse=on
+    </Location>
+
+    # Map the various XOS roots to the XOS instance
+    ProxyPass /xos http://xos:80
+    ProxyPass /xos/ http://xos:80/
+    ProxyPass /api/ http://xos:80/api/
+    ProxyPass /admin/ http://xos:80/admin/
+    ProxyPass /static/ http://xos:80/static/
+    ProxyPass /loggedin/ http://xos:80/loggedin/
+    ProxyPass /serviceGrid/ http://xos:80/serviceGrid/
+
+</IfModule>
+
+<IfModule rewrite_module>
+    RewriteEngine On
+    # Redirect (permanently) requests for /MAAS to /MAAS/.
+    RewriteRule ^/MAAS$ %{REQUEST_URI}/ [R=301,L]
+</IfModule>
+
+# Redirects so that basic URLs entered go the right place
+Redirect /fabric /fabric/onos/ui
+Redirect /vtn /vtn/onos/ui