Forum Discussion
skravens_86061
Jan 21, 2011Nimbostratus
adding a redirect to a maintenance page HTML code
Can you place "another" redirect inside the HTML code of a Maintenace page? This page goes up when the servers are not available, then after 10 seconds or so it redirects to a different IP or server. ...
skravens_86061
Jan 31, 2011Nimbostratus
Chris,
Below I have modified your redirect irule:
The page that i am trying to URL that I am redirecting from onlt uses 8443, not 80. Will the irule below redirct any requests to qa-dognet.org over to the 192.168.XXX.X address after a 5 second error page? Also can I take the support.com fallback information out?
<
when HTTP_REQUEST {
if { [TCP::local_port] eq "80" } {
persist source_addr 60
HTTP::fallback http://support.com/
set dtime 5
Un-comment the next 3 lines for redirects and expand out with elseif's if needed
if { [HTTP::host] == "www.qa-dognet.org" } {
HTTP::respond 200 content \
"
\We are sorry, but the site you are looking for is temporarily out of service." "Content-Type" "text/html"
} else {
pool DMX-POOL
Un-comment the net line if using redirects
}
} elseif { [TCP::local_port] eq "8443" } {
HTTP::header insert "BPL-SSL" "On"
pool DMX-POOL
} else {
set srvr [findclass [TCP::local_port] $::Individual_Servers " "]
if { $srvr ne "" } {
node $srvr 80
} else {
Replace with the default URL of the site
HTTP::redirect ""
}
}
}
Thanks again Chris!
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