blob: d8393b1644c6e0f382a6697bb16194ddd12e5d73 [file] [log] [blame]
David K. Bainbridge49b75ef2016-08-24 15:24:15 -07001<IfModule proxy_module>
2 ProxyPreserveHost on
3
4 # Map /fabric to the onos instance that is controlling the leaf
5 # spine fabric
6 <Location /fabric/>
7 ProxyPass http://onos-fabric:8181/
8 ProxyPassReverse http://onos-fabric:8181/
9 ProxyPassReverseCookiePath "/" "/fabric/"
10 Header edit Location "(^http[s]?://[^/]*)(\.*)" "$1/fabric$2"
11 </Location>
David K. Bainbridge49b75ef2016-08-24 15:24:15 -070012 <Location /fabric/onos/ui/websock/>
13 ProxyPass "ws://onos-fabric:8181/onos/ui/websock/" disablereuse=on
14 </Location>
15
Zack Williams275e48b2017-03-24 12:16:00 -070016 # kibana/elasticsearch
17 <Location /kibana>
18 ProxyPass http://localhost:5601
19 ProxyPassReverse http://localhost:5601
20 </Location>
21
David K. Bainbridge49b75ef2016-08-24 15:24:15 -070022 # Map /vtn to the onos instance that is controller the cordvtn
23 # application
24 <Location /vtn/>
Scott Bakerb4adda02016-12-05 21:06:35 -080025 ProxyPass http://onos-cord:8182/
26 ProxyPassReverse http://onos-cord:8182/
David K. Bainbridge49b75ef2016-08-24 15:24:15 -070027 ProxyPassReverseCookiePath "/" "/vtn/"
28 Header edit Location "(^http[s]?://[^/]*)(\.*)" "$1/vtn$2"
29 </Location>
30
31 <Location /vtn/onos/ui/websock/>
Scott Bakerb4adda02016-12-05 21:06:35 -080032 ProxyPass "ws://onos-cord:8182/onos/ui/websock/" disablereuse=on
David K. Bainbridge49b75ef2016-08-24 15:24:15 -070033 </Location>
34
Matteo Scandolo5c71a4b2017-01-10 12:00:50 -080035 # Cord SPA and rest-gw
36 ProxyPass /spa http://xos-spa-gui:4000
Matteo Scandolo5c71a4b2017-01-10 12:00:50 -080037 ProxyPass /spa/socket.io http://xos-rest-gw:3000/socket.io
38 ProxyPass /socket.io http://xos-rest-gw:3000/socket.io
39 <Location /socket.io>
40 RewriteEngine on
41 RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
42 RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
43 RewriteRule .* ws://xos-rest-gw:3000%{REQUEST_URI} [P]
44 </Location>
45
David K. Bainbridge49b75ef2016-08-24 15:24:15 -070046 # Map the various XOS roots to the XOS instance
Matteo Scandolo5c71a4b2017-01-10 12:00:50 -080047 ProxyPass /xos http://xos:9000
48 ProxyPass /xos/ http://xos:9000/
49 ProxyPassMatch /(api)$ http://xos:9000/$1/
50 ProxyPass /api/ http://xos:9000/api/
51 ProxyPass /login http://xos:9000/login
52 ProxyPass /admin/ http://xos:9000/admin/
53 ProxyPass /static/ http://xos:9000/static/
54 ProxyPass /loggedin/ http://xos:9000/loggedin/
55 ProxyPass /serviceGrid/ http://xos:9000/serviceGrid/
Scott Bakerb7197032017-02-02 11:32:42 -080056
57 ProxyPass /xosapi/ http://xos-chameleon:9101/xosapi/
David K. Bainbridge49b75ef2016-08-24 15:24:15 -070058</IfModule>
59
60<IfModule rewrite_module>
61 RewriteEngine On
62 # Redirect (permanently) requests for /MAAS to /MAAS/.
63 RewriteRule ^/MAAS$ %{REQUEST_URI}/ [R=301,L]
64</IfModule>
65
66# Redirects so that basic URLs entered go the right place
67Redirect /fabric /fabric/onos/ui
68Redirect /vtn /vtn/onos/ui