Forum Discussion
HTTP to HTTPS without redirection
Ok the requirement is below .
when client make a request to the VIP URL http://www.example.com:8003/ngi/testentsys-m2p-lgmgmt-masterdata/entsys/m2p/lgmgmt/v1/commodities/:commodityId SHOULD route to AWS cloud NODE https://test.abcdef-ent-syz.com/testentsys-m2p-lgmgmt-masterdata/entsys/m2p/lgmgmt/v1/commodities/:commodityId . there are like 100 Web URL behind this NODE. So i think i need to use here an IRULE which will check for one URI string "/ppf" , STRIP that string and attach the REST URI request to HOST test.aausyd-ent-syz.com .
CLIENT_REQUEST to VIP ----> http://www.example.com:8003/ppf/testentsys-m2p-lgmgmt-masterdata/entsys/m2p/lgmgmt/v1/commodities/:commodityId
VIP to SERVER -----> https://test.abcdef-ent-syz.com/testentsys-m2p-lgmgmt-masterdata/entsys/m2p/lgmgmt/v1/commodities/:commodityId
NO redirection SHOULD be in full proxy .
i have written an irule BUT it returning me a RESET
when HTTP_REQUEST {
if {([string tolower [HTTP::host]] equals "www.example.com:8003") && [HTTP::uri] starts_with "/ppf" } {
HTTP::header replace "Host" "test.abcdef-ent-syz.com"
HTTP::uri [string map [list "/ppf" "" ] [HTTP::uri]]
node 10.10.10.1 443
}
}
So my question is , can this be achievable .
- Feb 04, 2021
iRule looks normal.
Is there another iRule in the Virtual Server?
Can you investigate /var/log/ltm?
Recent Discussions
Related Content
* 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