Forum Discussion
iRule to redirect
- nitassEmployeewhat is url user sends to https virtual server?
- alhall_3584NimbostratusThe https request goes to a virtual server and then to apache/tomcat. The virtual server is working fine and can see the apache/tomcat. I can connect dircetly to the apache/tomcat using but if I try to connect using that is where my problem lies. I need to have an iRule that when a request comes in to direct it specfically to site.html. Thx for the response!
- nitassEmployeenot sure if i understand correctly.
[root@ve10:Active] config b virtual bar list virtual bar { snat automap pool foo destination 172.28.19.79:443 ip protocol 6 rules myrule profiles { clientssl { clientside } http {} tcp {} } } [root@ve10:Active] config b pool foo list pool foo { members 200.200.200.101:8080 {} } [root@ve10:Active] config b rule myrule list rule myrule { when HTTP_REQUEST { if {[HTTP::uri] eq "/"} { HTTP::uri "/site.html" } } } [root@ve10:Active] config ssldump -Aed -nni 0.0 port 443 or port 8080 -k /config/ssl/ssl.key/default.key New TCP connection 1: 172.28.19.251(39545) <-> 172.28.19.79(443) 1 1 1345486212.2547 (0.0101) C>S SSLv2 compatible client hello 1 2 1345486212.2547 (0.0000) S>CV3.1(81) Handshake 1 3 1345486212.2547 (0.0000) S>CV3.1(953) Handshake 1 4 1345486212.2547 (0.0000) S>CV3.1(4) Handshake 1 5 1345486212.2565 (0.0017) C>SV3.1(262) Handshake 1 6 1345486212.2565 (0.0000) C>SV3.1(1) ChangeCipherSpec 1 7 1345486212.2565 (0.0000) C>SV3.1(36) Handshake 1 8 1345486212.2816 (0.0251) S>CV3.1(1) ChangeCipherSpec 1 9 1345486212.2816 (0.0000) S>CV3.1(36) Handshake 1 10 1345486212.2836 (0.0019) C>SV3.1(175) application_data --------------------------------------------------------------- HEAD / HTTP/1.1 User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5 Host: 172.28.19.79 Accept: */* --------------------------------------------------------------- New TCP connection 2: 200.200.200.10(39545) <-> 200.200.200.101(8080) 1345486212.2845 (0.0007) C>S --------------------------------------------------------------- HEAD /site.html HTTP/1.1 User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5 Host: 172.28.19.79 Accept: */* ---------------------------------------------------------------
- alhall_3584NimbostratusThe frontend site is https://something.something.com which is to the virtual server, which is then supposed to forward to http://host:8080/site.html. Our problem is getting to the /site.html part. Thx!
- Richard__HarlanHistoric F5 AccountYou can create a iRule that does the following like Nitass sates
- alhall_3584NimbostratusThanks for the input but it looks like we are going to have to do some more troubleshooting because we still get the web page "Internet Explorer cannot display the webpage from the frontend. Thx!
- Richard__HarlanHistoric F5 AccountHave you looked through your log /var/log/ltm? When internet explorer give the page can not be displayed it is a very generic error it could be a reset coming from the LTM or something else. At this point we need a conf snip of the iRule and the VIP to help or any error from the LTM logs.
- alhall_3584NimbostratusThanks for the input but it looks like we are going to have to do some more troubleshooting because we still get the web page "Internet Explorer cannot display the webpage from the frontend. Thx!
- nitassEmployeedoes the server accept something.something.com as host header?
- Al_3585Nimbostratus
Still not working got this response back:
login as: adminUsing keyboard-interactive authentication.Password:Last login: Tue Aug 21 14:05:45 2012 from xxx.x.xxx.252[admin@:Active] ~ curl -I-H "Host: itlml.affsc.."HTTP/1.1 200 OKServer: Apache-Coyote/1.1Set-Cookie: JSESSIONID=99B6B673D0F19F8402EC7725BA3BCEB3; Path=/Content-Type: text/html;charset=UTF-8Transfer-Encoding: chunkedDate: Tue, 21 Aug 2012 20:07:19 GMT[admin@:Active] ~
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