Forum Discussion
mindprint_15295
Nimbostratus
May 16, 2014Serving static web content from a subdoamin
Hi.
Situation:
Currently the virtual server is serving all files (static and dynamic) with persistent cookies and all files are coming from one domain. For example http://www.example.com/im...
mindprint_15295
Nimbostratus
May 16, 2014Got it working with following code:
when HTTP_REQUEST {
set active_pool_name "main_site_pool"
set actual_host_name "www.example.com"
if {[matchclass [HTTP::host] eq static_content_route_class ]} {
pool "$active_pool_name"
HTTP::header replace Host "$actual_host_name" }
}Is there a better solution?
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