David K. Bainbridge | 49b75ef | 2016-08-24 15:24:15 -0700 | [diff] [blame] | 1 | <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/> |
| 20 | ProxyPass http://onos-cord:8181/ |
| 21 | ProxyPassReverse http://onos-cord:8181/ |
| 22 | ProxyPassReverseCookiePath "/" "/vtn/" |
| 23 | Header edit Location "(^http[s]?://[^/]*)(\.*)" "$1/vtn$2" |
| 24 | </Location> |
| 25 | |
| 26 | <Location /vtn/onos/ui/websock/> |
| 27 | ProxyPass "ws://onos-cord:8181/onos/ui/websock/" disablereuse=on |
| 28 | </Location> |
| 29 | |
| 30 | # Map the various XOS roots to the XOS instance |
| 31 | ProxyPass /xos http://xos:80 |
| 32 | ProxyPass /xos/ http://xos:80/ |
| 33 | ProxyPass /api/ http://xos:80/api/ |
| 34 | ProxyPass /admin/ http://xos:80/admin/ |
| 35 | ProxyPass /static/ http://xos:80/static/ |
| 36 | ProxyPass /loggedin/ http://xos:80/loggedin/ |
| 37 | ProxyPass /serviceGrid/ http://xos:80/serviceGrid/ |
| 38 | |
| 39 | </IfModule> |
| 40 | |
| 41 | <IfModule rewrite_module> |
| 42 | RewriteEngine On |
| 43 | # Redirect (permanently) requests for /MAAS to /MAAS/. |
| 44 | RewriteRule ^/MAAS$ %{REQUEST_URI}/ [R=301,L] |
| 45 | </IfModule> |
| 46 | |
| 47 | # Redirects so that basic URLs entered go the right place |
| 48 | Redirect /fabric /fabric/onos/ui |
| 49 | Redirect /vtn /vtn/onos/ui |