Forum Discussion
Mike_Rausch_628
Nimbostratus
Dec 20, 2007IRULE to redirect an HTTP Request to a certain file
We have an application that allows you to view a pdf for the object you are currently looking at. The pdf's are all numbered and coincide with the different objects in the application. If you click on...
hoolio
Cirrostratus
Jan 03, 2008I thought you wanted to avoid hosting the "404 PDF" on a server. In terms of the BIG-IP it's more efficient to send a redirect to the client than store the PDF content in memory. If you're able to host it another server, just change the HTTP::respond line in the rule above to an HTTP::redirect.
old
HTTP::respond 200 content [b64decode [lindex $::pdf_404_file 0]] "Content-Type" "application/pdf"
new
HTTP::redirect http://www.example.com/path/to/404.pdf
Aaron
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