Forum Discussion
jcotonou_41350
Nimbostratus
Sep 28, 2011reject 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
- hoolio
Cirrostratus
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 - The_Mentalist_1
Nimbostratus
a thinks you want a "sorry page"??????????? - jcotonou_41350
Nimbostratus
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..- nitass
Employee
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.
- jcotonou_41350
Nimbostratus
Hello
Thank for answers
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects