Forum Discussion
Redirect to a FQDN
sorry I am new to irule I would like when somebody types http://boprod it should redirect them to http://boprod:8080/BOE/BI
- Vijay_ECirrus
when HTTP_REQUEST { if { ([HTTP::host] eq "boprod") and ([HTTP::uri] eq "/BOE/BI") } { HTTP::respond 301 Location "http://boprod:8080/BOE/BI" } }
- Tunde1972_27774Nimbostratus
I am using http://boprod/BOE/BI and expect to be redirected to http://boprod:8080/BOE/BI
- Vijay_ECirrus
curl -I http://boprod/BOE/BI
- Tunde1972_27774Nimbostratus
curl -I http://boprod/BOE/BI does not return any results
- Tunde1972_27774Nimbostratus
it says could not connect to host
- IheartF5_45022Nacreous
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_27774Nimbostratus
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_27774Nimbostratus
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_45022Nacreous
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 .
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