blob: d80a6a34a17a291e6e019285e36e24e6cbd3f792 [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>
12
13 <Location /fabric/onos/ui/websock/>
14 ProxyPass "ws://onos-fabric:8181/onos/ui/websock/" disablereuse=on
15 </Location>
16
17 # Map /vtn to the onos instance that is controller the cordvtn
18 # application
19 <Location /vtn/>
Scott Bakerb4adda02016-12-05 21:06:35 -080020 ProxyPass http://onos-cord:8182/
21 ProxyPassReverse http://onos-cord:8182/
David K. Bainbridge49b75ef2016-08-24 15:24:15 -070022 ProxyPassReverseCookiePath "/" "/vtn/"
23 Header edit Location "(^http[s]?://[^/]*)(\.*)" "$1/vtn$2"
24 </Location>
25
26 <Location /vtn/onos/ui/websock/>
Scott Bakerb4adda02016-12-05 21:06:35 -080027 ProxyPass "ws://onos-cord:8182/onos/ui/websock/" disablereuse=on
David K. Bainbridge49b75ef2016-08-24 15:24:15 -070028 </Location>
29
30 # Map the various XOS roots to the XOS instance
Scott Baker007a2222016-11-10 17:25:40 -080031 ProxyPass /xos http://xos:8888
32 ProxyPass /xos/ http://xos:8888/
Matteo Scandoloeb059e52017-01-03 12:51:54 -080033 ProxyPass /api http://xos:8888/api/
Scott Baker007a2222016-11-10 17:25:40 -080034 ProxyPass /api/ http://xos:8888/api/
Matteo Scandoloeb059e52017-01-03 12:51:54 -080035 ProxyPass /login http://xos:8888/login
Scott Baker007a2222016-11-10 17:25:40 -080036 ProxyPass /admin/ http://xos:8888/admin/
37 ProxyPass /static/ http://xos:8888/static/
38 ProxyPass /loggedin/ http://xos:8888/loggedin/
39 ProxyPass /serviceGrid/ http://xos:8888/serviceGrid/
Matteo Scandolof3db9152017-01-04 14:04:46 -080040
Matteo Scandoloeb059e52017-01-03 12:51:54 -080041 # Setting XOS as default entry point
42 ProxyPass / http://xos:8888
David K. Bainbridge49b75ef2016-08-24 15:24:15 -070043</IfModule>
44
45<IfModule rewrite_module>
46 RewriteEngine On
47 # Redirect (permanently) requests for /MAAS to /MAAS/.
48 RewriteRule ^/MAAS$ %{REQUEST_URI}/ [R=301,L]
49</IfModule>
50
51# Redirects so that basic URLs entered go the right place
52Redirect /fabric /fabric/onos/ui
53Redirect /vtn /vtn/onos/ui