Forum Discussion
DarkSideOfTheQ_
Nimbostratus
Feb 23, 2009HTTPS rewrite???
Hello All,
I have two vips setup, one for http and one for https. I've put in place an http to https redirect on the http vip and it is working as expected.
when HTTP_REQUEST {
if {...
DarkSideOfTheQ_
Nimbostratus
Feb 24, 2009Ok, as I mentioned this is working, but now they've come back and asked me to do something that should be handled at the app layer. They have a web console that is used to change parameters of the app server. Rather than putting a password on it like they should, they want me to drop any requests attempting to access it. I tried using the 'else' and 'elseif' statements, but they seemed to drop everything. Where have I fallen off the tracks on this???
when HTTP_REQUEST {
if { ([HTTP::host] equals "test.domain.com") and [HTTP::uri] equals "/" } {
HTTP::redirect https://test.domain.com/app/login.do
} elseif { ([HTTP::uri] contains "appconsole" or "qaconsole") } {
reject }
}
I also tried this with no success???
when HTTP_REQUEST {
if { ([HTTP::host] equals "test.domain.com") and [HTTP::uri] equals "/" } {
HTTP::redirect https://test.domain.com/app/login.do
} else {
reject }
}
TIA
-DarkSide
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