diff options
Diffstat (limited to 'deployment/http')
-rw-r--r-- | deployment/http/lighttpd/10-proxy.conf | 14 | ||||
-rw-r--r-- | deployment/http/web/index.html | 6 |
2 files changed, 11 insertions, 9 deletions
diff --git a/deployment/http/lighttpd/10-proxy.conf b/deployment/http/lighttpd/10-proxy.conf index f6ce4946..a2da19c3 100644 --- a/deployment/http/lighttpd/10-proxy.conf +++ b/deployment/http/lighttpd/10-proxy.conf @@ -12,11 +12,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -proxy.server = ( "/onap" => - ( - ( "host" => "127.0.0.1", - "port" => 8080 - ) - ) - ) - +$HTTP["url"] =~ "^/web-console" { + $HTTP["host"] =~ ".*" { + url.redirect = ( "^/(.*)" => "http://%0:8080" ) + url.redirect-code = 302 + } +} diff --git a/deployment/http/web/index.html b/deployment/http/web/index.html index c70e7018..04c356db 100644 --- a/deployment/http/web/index.html +++ b/deployment/http/web/index.html @@ -24,6 +24,10 @@ function redirectToConsole(){ window.location.href="http://"+ window.location.hostname + ":9090"; } +function redirectToConsoleOOM(){ + window.location.href="http://"+ window.location.hostname + ":30261"; +} + </script> <style> @@ -66,7 +70,7 @@ body { <h3 >Web Command Console (WCC)</h3> <p>Helps operator to access the command console over HTTP. -<a onclick="redirectToConsole();" style="color: blue;cursor: pointer">Click here !</a> +Click <a onclick="redirectToConsole();" style="color: blue;cursor: pointer">here !</a> OR <a onclick="redirectToConsoleOOM();" style="color: blue;cursor: pointer"> here !</a> <h3>Linux Shell</h3> <p>Helps operator to run CLI locally using Linux command shell. |