diff options
author | HuabingZhao <zhao.huabing@zte.com.cn> | 2016-10-13 15:32:43 +0800 |
---|---|---|
committer | HuabingZhao <zhao.huabing@zte.com.cn> | 2016-10-13 15:32:52 +0800 |
commit | 8a9f53b7699b7af4df0e89dc6ce5cfcab327cec5 (patch) | |
tree | f40126edea0e53a5473a222dd07e404de1056511 /msb-core | |
parent | c448fcbe67782274dcaaebd21450a7629c4f5d0c (diff) |
OCS-95 Driver has been registered to the DriverMGR, use the driver has been registered to access the service, response 404
Issue-Id: OCS-95
Change-Id: Id3206a2da74247c27f2e994fd514afc8d94e21dd
Signed-off-by: HuabingZhao <zhao.huabing@zte.com.cn>
Diffstat (limited to 'msb-core')
2 files changed, 4 insertions, 4 deletions
diff --git a/msb-core/eag-openresty-ext/src/assembly/resources/openresty/nginx/sites-enabled/openomsb.conf b/msb-core/eag-openresty-ext/src/assembly/resources/openresty/nginx/sites-enabled/openomsb.conf index 5cff7eb..6bf5e07 100644 --- a/msb-core/eag-openresty-ext/src/assembly/resources/openresty/nginx/sites-enabled/openomsb.conf +++ b/msb-core/eag-openresty-ext/src/assembly/resources/openresty/nginx/sites-enabled/openomsb.conf @@ -61,7 +61,7 @@ server { #Send requests to Driver Mgr. if 'X_Driver_Parameter' header found in the request if ($http_X_Driver_Parameter) { - access_by_lua_block { + rewrite_by_lua_block { local driver_manager = require('plugins.driver_manager') driver_manager.access() } @@ -73,8 +73,8 @@ server { set $apiurl ""; # Lua files - # rewrite_by_lua_file luaext/openoapirouter.lua; - # access_by_lua_file luaext/execute_auth.lua; + rewrite_by_lua_file luaext/openoapirouter.lua; + access_by_lua_file luaext/execute_auth.lua; proxy_pass http://$apiserver; } diff --git a/msb-core/openresty-ext/src/assembly/resources/openresty/nginx/sites-enabled/openomsb.conf b/msb-core/openresty-ext/src/assembly/resources/openresty/nginx/sites-enabled/openomsb.conf index dd5375d..ad0bf1c 100644 --- a/msb-core/openresty-ext/src/assembly/resources/openresty/nginx/sites-enabled/openomsb.conf +++ b/msb-core/openresty-ext/src/assembly/resources/openresty/nginx/sites-enabled/openomsb.conf @@ -61,7 +61,7 @@ server { #Send requests to Driver Mgr. if 'X_Driver_Parameter' header found in the request if ($http_X_Driver_Parameter) { - access_by_lua_block { + rewrite_by_lua_block { local driver_manager = require('plugins.driver_manager') driver_manager.access() } |