OCS-95 Driver has been registered to the DriverMGR, use the driver has been registere...
authorHuabingZhao <zhao.huabing@zte.com.cn>
Thu, 13 Oct 2016 07:32:43 +0000 (15:32 +0800)
committerHuabingZhao <zhao.huabing@zte.com.cn>
Thu, 13 Oct 2016 10:01:15 +0000 (18:01 +0800)
Issue-Id: OCS-95
Change-Id: Id3206a2da74247c27f2e994fd514afc8d94e21dd
Signed-off-by: HuabingZhao <zhao.huabing@zte.com.cn>
msb-core/eag-openresty-ext/src/assembly/resources/openresty/nginx/sites-enabled/openomsb.conf
msb-core/openresty-ext/src/assembly/resources/openresty/nginx/sites-enabled/openomsb.conf

index 5cff7eb..6bf5e07 100644 (file)
@@ -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;
    }
index dd5375d..ad0bf1c 100644 (file)
@@ -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()
                        }