Forum Discussion
Dennis_Andrade_
Nimbostratus
Oct 01, 2013Extract hostname from URL using the edge client
The user is connected to the edge client in the ipad or iphone. We have a Virtual server with a network access for setup for that.
They then open the browser and browse to an internal URL which is po...
Dennis_Andrade_
Nimbostratus
Oct 02, 2013This code works if we have only the ACCESS_ACL_ALLOWED. If I Add the HTTP_REQUEST the access to the application hangs. Don't see any errors in the LTM logs. For the ACCESS_POLICY_AGENT_EVENT, I added an access policy and added and iRule event in there allowing everybody access but I added a log in that section and the access policy doesn't seem to kick in.
when HTTP_REQUEST {
set ::temphost [HTTP::host]
}
when ACCESS_POLICY_AGENT_EVENT {
ACCESS::session data set session.custom.host $::temphost
}
when ACCESS_ACL_ALLOWED {
set user "[ACCESS::session data get "session.logon.last.username"]"
HTTP::header insert X-UPN $user
}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
