I have redirected all request to maintenance page, first i need to check the web app with some local ips and then i will set catch request false.
Is there any way,some one help me …
Thanks
chill
I have redirected all request to maintenance page, first i need to check the web app with some local ips and then i will set catch request false.
Is there any way,some one help me …
Thanks
chill
Create a simple behavior. Attach an event handler to onBeginRequest. Check the IP in the event handler method. If doesn’t match, set CWebApplication::$catchAllRequest dynamically. Attach the behavior to CWebApplication in your application configuration:
'behaviors' => [
'catchable' => [
'class' => 'path.alias.to.BehaviorClass',
'enabled' => true,
'allowedIps' => [
//...
],
],
],