Forum Discussion
Hide Port in URL
Hi,
I have the following requirement. I want to hide the URL port Use will request for https://ebsdmzuat.abc.com
it will be redirect to
https://ebsdmzuat.abc.com:8060/OA_HTML/RF.jsp
But i want to hide the port number in the actual URL. I dont want the user to see the port number etc.
I have created the VS and irule and redirection is working fine but unable to hide the port number in the URL.
when HTTP_REQUEST { switch -glob [string tolower [HTTP::host]] { "ircuat.abc.com" { HTTP::respond 301 Location "https://ebsdmzuat.abc.com:8060/OA_HTML/IrcVisitor.jsp" } "isupuat.abc.com" { HTTP::respond 301 Location "https://ebsdmzuat.abc.com:8060/OA_HTML/jsp/pos/suppreg/SupplierRegister.jsp" } "ircvuat.abc.com" { HTTP::respond 301 Location "https://ebsdmzuat.abc.com:8060" } "iprcuat.abc.com" { HTTP::respond 301 Location "https://ebsdmzuat.abc.com:8060" } "ebsdmzuat.abc.com" { HTTP::respond 301 Location "https://ebsdmzuat.abc.com:8060/OA_HTML/AppsLogin" }
}
}
ltm virtual VS_TEST { destination 192.168.206.24:any ip-protocol tcp mask 255.255.255.255 partition PRPRDWEBDMZ persist { PRDWEB_STICKY { default yes } } pool TEST_POOL_2 profiles { /Common/tcp { } CLIENT_SSL { context clientside } PRE-PROD-WEB-DMZ-Profile { } } rules { NEW_TEST } source 0.0.0.0/0 source-address-translation { type automap } translate-port disabled vlans { PRE-PROD-WEB-DMZ } vlans-enabled vs-index 140
Please let me know how to fix this issue.
3 Replies
- omniplex
Nimbostratus
The only way to hide the port number is to use the default ports of 80 or 443. The browser needs to know what port to send the request to, and that will appear on the address bar when it's a non-standard port. You might be able to redirect to another VIP and then re-direct back if you need to.
- Wasim_Hassan_13
Nimbostratus
Hi,
What will be the configuration for VIP and irule ?????
- Wasim_Hassan_13
Nimbostratus
You mean to say I need to create Two VIP one for Port 443 and one for port 8060
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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