From 3f9fc6aac50fd9d1f4c723cde1e0b8e68a4b8a13 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Wed, 9 May 2018 06:18:07 +0000 Subject: Make redirect ready in lighttpd Issue-ID: CLI-100 Change-Id: I66bece217432dedc82556fb18713a25d7220c8b3 Signed-off-by: Kanagaraj Manickam k00365106 --- deployment/http/lighttpd/10-proxy.conf | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 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 + } +} -- cgit 1.2.3-korg