Forum Discussion
Keith_Fox_15580
Nimbostratus
Jan 15, 2015Virtual server with two different web servers
I have a virtual server that needs to have two different web servers behind it, so that I can present it via the internet. The reasoning for this is server1, redirects to server2 two for authenticati...
Michael_Jenkins
Cirrostratus
Jan 16, 2015You can try this and see what the logs turn up... Maybe that will help figure something out... Are you familiar with tcpdump too?
when HTTP_REQUEST {
log local0. "URL: [HTTP::host][HTTP::uri]"
}
when HTTP_RESPONSE {
log local0. " Response code: [HTTP::status]"
if { [HTTP::is_redirect] }{
log local0. " Original: [HTTP::header value Location]"
HTTP::header replace Location [string map {"A.internal.com" "X.external.com"} [HTTP::header Location]]
log local0. " Updated: [HTTP::header value Location]"
}
}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