Forum Discussion
Redirect to a FQDN
You need a vs on port 80 AND a vs on port 8080 to acheive what you appear to want.
The port :80 vs needs to simply have the iRule attached, while the port :8080 would need the pool attached.
To echo Odaah however, I suspect you don't really want to perform an HTTP redirect at all - you just need ONE vs on port 80, with a pool on port :8080.
- Tunde1972_27774Jul 12, 2016Nimbostratus
yes If I can achieve that without an irule that will be fine, I would assume that port translation will fix it but for some strange reason it is not working
- Tunde1972_27774Jul 12, 2016Nimbostratus
my present configuration is as follows VS is listening on port 80 pool members on port 8080
http://boprod/BOE/BI does not work while http://boprod:8080/BOE/BI works, port translation is enabled by default on the VS
- IheartF5_45022Jul 13, 2016Nacreous
Sounds like boprod is resolving to the IP of the server, not the IP of the VS. Check your DNS/hosts file.
Also try to access using IP of the VS directly .
- Tunde1972_27774Jul 13, 2016Nimbostratus
The hostname resolves to the VIP Ip address
- Mike_Dayton_108Jul 14, 2016Nimbostratus
Is the server expecting port 8080 in the header but the header says 80? - set the server to accept port 80 in the header.
- Tunde1972_27774Jul 14, 2016Nimbostratus
The servers are listening on port 8080 and the VIP is listening on port 80. I thought since port translation is enabled by default the F5 will just forward the request to the backend servers on port 8080 ?
- IheartF5_45022Jul 14, 2016Nacreous
There is no need to set the server to accept port 80, there is no need for an iRule. A non-forwarding VS will translate address/port for you.
Something else is wrong - what happens when you access the VS directly using IP ie. http://x.x.x.x/BOE/BI (where x.x.x.x is IP of VS)?
Can you see the traffic on a tcpdump?
tcpdump -i0.0 -XX host x.x.x.x and port 80
Do you have SNAT enabled? Should you?
Also it doesn't make sense that you can access 'boprod' on port 8080 if that IP is only configured on port 80. Something doesn't add up.
- Tunde1972_27774Jul 15, 2016Nimbostratus
It now works, I just had to delete my browser history, it was still redirecting me to 8080 even though I changed the VS to listen to port 80. Thanks again for all your help. greatly appreciate it.
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