diff options
author | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2018-05-09 06:18:07 +0000 |
---|---|---|
committer | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2018-05-09 06:18:07 +0000 |
commit | 3f9fc6aac50fd9d1f4c723cde1e0b8e68a4b8a13 (patch) | |
tree | 0f304579aabad48566d73020f2db852fa002792c /deployment/http/lighttpd | |
parent | 2d12bf3424ea17da5af94ac9e33cac231ca764ed (diff) |
Make redirect ready in lighttpd
Issue-ID: CLI-100
Change-Id: I66bece217432dedc82556fb18713a25d7220c8b3
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'deployment/http/lighttpd')
-rw-r--r-- | deployment/http/lighttpd/10-proxy.conf | 14 |
1 files 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 + } +} |