Map Ip To Url Url Manager

I have an application which uses sub-domain to point to particular modules. However, I have requirement where pinging by IP should be allowed just to check server health status. So far I have this. But pinging by IP is not working.




'rules' => array

(

    /*Custom routes - PLEASE NOTE ORDER PLAYS A CRUCIAL ROLE HERE. HIGHER THE RULE GREATER THE IMPORTANCE*/

    'http://www.lvh.me/' => 'static/defaults/index',

    'http://www.lvh.me/contact.html' => 'static/defaults/contact',

    'http://www.lvh.me/faq.html' => array('static/defaults/page','defaultParams' => array('view'=> 'faq')),

    'https://admin.lvh.me' => 'admin/defaults/index',

    'https://admin.lvh.me/login' => 'admin/defaults/login',

    'https://admin.lvh.me/logout' => 'admin/defaults/logout',

    'https://admin.lvh.me/admin/logout' => 'admin/defaults/logout',

    'https://tracker.lvh.me/clicks/<bannerGroupCode:\w+>/<affiliateCode:\w+>' => 'tracker/clicks/index',

    'https://<module:\w+>.lvh.me/<controller:\w+>/<action:\w+>' => '<module>/<controller>/<action>',

    'https://<module:\w+>.lvh.me/<controller:\w+>/<action:\w+>/<id:\d+>' => '<module>/<controller>/<action>',

    'https://<module:\w+>.lvh.me/<controller:\w+>/<action:\w+>/' => '<module>/<controller>/<action>',

    /*End Custom Routes*/

    '<controller:\w+>/<id:\d+>' => '<controller>/view',

    '<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',

    '<controller:\w+>/<action:\w+>' => '<controller>/<action>',

   /* FOR IP - This seems to be not working - also I cannot hard code IP here*/

   'http://<first:\d+>.<second:\d+>.<third:\d+>.<fourth:\d+>/' => 'static/defaults/index',

   'https://<first:\d+>.<second:\d+>.<third:\d+>.<fourth:\d+>/' => 'static/defaults/index',

),



Can anyone please give me any hint.

The ping command does not have anything to do with the webserver or your web application, it’s all about how the server is configured

About ping: http://en.wikipedia.org/wiki/Ping_(networking_utility)