Forum Discussion
Mike_Roe_60070
Nimbostratus
Nov 23, 2010Remote login page needs to know which site request came from.
Hi all, We have a need to hide all our apps behind a single login application and are using a remote login page in an APM policy to do this. The problem is that this login app needs some way of findin...
Mike_Roe_60070
Nimbostratus
Dec 22, 2010Well I modified this a little and got the logs to at least lie to me and tell me its working. Here is what I have done:
when HTTP_REQUEST {
set req_uri [HTTP::header value referer]
log local0. "Referer was $req_uri"
}
when HTTP_RESPONSE {
HTTP::cookie insert name "real_referer" value "$req_uri"
log local0. "inserted real_referer cookie with value $req_uri"
}
The logs read:
Dec 22 10:25:45 local/tmm1 info tmm1[4959]: Rule referer-irule : Referer was http://www-test.winwholesale.com/
Dec 22 10:25:45 local/tmm info tmm[4958]: Rule referer-irule : Referer was http://www-test.winwholesale.com/
Dec 22 10:25:45 local/tmm info tmm[4958]: Rule referer-irule : inserted real_referer cookie with value http://www-test.winwholesale.com/
Dec 22 10:25:45 local/tmm info tmm[4958]: Rule referer-irule : Referer was
Im not too sure what is going on in the inner workings of the access policy but, i see an additionallog entry at the end that has a null value for $req_uri.
All said the value I need the login page to see is what is showing up in the logs so the variable is correst. I am not sure why the cookie never gets added though. Thoughts?
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