Forum Discussion

jcotonou_41350's avatar
jcotonou_41350
Icon for Nimbostratus rankNimbostratus
Sep 28, 2011

reject user url without /owa

Hello

 

I have Exchange 2010. How to prevent user to get IIS picture error when he not put correct url like webmail.mydomain/owa.

 

Finally i went with irule to reject user when he not type http://webmail.mydomain/owa

 

thanks

 

7 Replies

  • Can you clarify what you're trying to do? Do you want to prevent access to http://webmail.mydomain/owa, force a redirect from http to https, or redirect / requests to /owa?

     

     

    Aaron
  • Thanks to reply

     

    i'm trying to redirect user request ends with / to http://webmail.mydomain/owa.

     

    it's also possible to generate dynamic 'sorry page '?

     

    i accept any irule sample .

     

    Thanks

     

  • 
    when HTTP_REQUEST {
    if {[HTTP::uri] equals {/}} {HTTP::uri {/owa}
    }
    }
    

    Dynamic sorry page as in if what lives at /owa is down? If so you could utilize "Priority Group Activation" and host your sorry page on the member with the lowest priority... You would then need to set your "less than" parameter appropriately for the amount of pool members you have..
  • in case u want redirect.

     

     

    [root@tulip:Active] config b virtual bar list

     

    virtual bar {

     

    snat automap

     

    pool foo

     

    destination 172.28.17.66:https

     

    ip protocol tcp

     

    rules myrule

     

    profiles

     

    clientssl

     

    myhttp

     

    tcp

     

    }

     

    [root@tulip:Active] config b rule myrule list

     

    rule myrule {

     

    when HTTP_REQUEST {

     

    if {[HTTP::uri] equals "/"} {

     

    HTTP::redirect ""

     

    }

     

    }

     

    }

     

     

    [root@tulip:Active] config curl -Ik https://172.28.17.66

     

    HTTP/1.0 302 Found

     

    Location: https://172.28.17.66/owa/

     

    Server: BigIP

     

    Connection: Keep-Alive

     

    Content-Length: 0

     

     

    [root@tulip:Active] config b profile myhttp list

     

    profile http myhttp {

     

    defaults from http

     

    fallback "http://www.google.com"

     

    }

     

     

    [root@tulip:Active] config b pool foo|grep -i pool\ member

     

    +-> POOL MEMBER foo/10.10.70.110:http inactive,down

     

     

    [root@tulip:Active] config curl -Ik https://172.28.17.66/owa

     

    HTTP/1.0 302 Found

     

    Location: http://www.google.com

     

    Connection: close

     

     

  • Indeed, if you want a 302 redirect and have the browser bar show "/owa", Nitass' example is what you want.