Forum Discussion
brad_scherer_11
Nimbostratus
May 05, 2006another challanging rediret
We terminate SSL on the F5 for this site. The backend is http over 7678 to the servers.
when HTTP_REQUEST {
if { [HTTP::host] equals "mywebsite.mydomain.com" }{
HTTP::redire...
Colin_Walker_12
May 05, 2006Historic F5 Account
It looks like you're pretty close. You might want to do a couple things different.
First, I'd recommend using the HTTP::uri command, rather than doing full on HTTP::redirects, as they shouldn't be necessary.
Second, rather than checking for certain directories, if you truly want to append "index.html" to all requests coming through this virtual, it's done with relative ease like this:
when HTTP_REQUEST {
if { not ( [HTTP::uri] ends_with "/" ) } {
set newURI "[HTTP::uri]/index.html"
} else {
set newURI "[HTTP::uri]index.html"
}
HTTP::uri $newURI
}This should modify the URI to append index.html to whatever was currently there.
HTH,
Colin
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
