rewrite url
7 Topicsirule for change the url and port
dear all i have customer who had proxy before, and the ideas is change the function of the proxy. unfortunately i think we must use irule to do that. here are the requirement : we need to replace the http with https, also if it contains port 8080 in the URL we must remove it. i dont know whether it used on the http response or request they need to edit http response content/body, if mime type are application/excel text/html text/plain, they need subtitute the http to https and remove port 8080 i hope all of you can help me solving this problem thank you599Views0likes1CommentURL re-write profile not working
I am trying to use the URL Re-write profile feature of the LTM, I have never used this feature before but it seems fairly straight forward to configure. I am trying to do the following: When a user hits the outsite URL, www.website.com the internal request is server1.internal.com/application I have setup a re-dwrite profile and attached it to the VIP but it doesn't seem to be taking effect. It seems to just hit the root of the internal web server in the pool. I even tried changing the internal URI (the Server URI) to a non existent value http://test.com/xyz/ and it still just loads the website home page. It almost seems like it's ignoring the profile. I am defintely configuring the correct VIP etc. My next step was to try and configure it via an Irule. I looked at an existing example on Devcentral and used the one below but it doesn't seem to like the sytax. Irule I am trying to use: I get the following error: Any help with either would be appreciated. Thanks381Views0likes5Commentspresent http page without rewriting client headers
Hi, I'm fairly new on F5 Loadbalancers so excuse me if the question is dumb. I'm trying to make an iRule that reads Host header searching for www.domain.com/foosite and if it matches, send to another pool (LAMP_Server) which have a wordpress listening on notification.domain.com and present the HTML page notification.domain.com/foosite without changing client's navigator URL (www.domain.com/foosite) The only way I could do it was rewriting Host header so changing the client navigator URL. when HTTP_REQUEST { log local0. "Request: [HTTP::host]" if { [HTTP::uri] contains "foosite" } { HTTP::header replace Host notifications.domain.com pool LAMP_Server } } when HTTP_RESPONSE { log local0. "Response:" foreach aHeader [HTTP::header names] { log local0. "$aHeader: [HTTP::header value $aHeader]" } } Do you can help me?? Greets332Views0likes4CommentsRewrite URL and Virtual Server Selection
Hi All, I have 2 web server url binding to 2 VS in F5, oa.f5.com = VS_OA office.f5.com = VS_Office I want to achieve, if the user type http://oa.f5.com/nadine then it will go to http://office.f5.com/ I have created the irule in VS_OA as below, but no success ( the traffic still go to VS_OA with error 404 due to no nadine folder) when HTTP_REQUEST_RELEASE { if {[string tolower [HTTP::host]] starts_with "oa.f5.com" && [HTTP::uri] starts_with "/nadine" } { HTTP::host "office.f5.com" HTTP::uri [string map {"/nadine" "/"} [HTTP::uri]] virtual VS_Office } }311Views0likes1CommentiRule help
Hi Can anyone help me to create an iRule. My scenario is as following , Users from outside (internet) will access the url https://mail.company.com/archive for accessing their archived/old emails. but url on the archive server side is https://mycompany.archivemail.com/archive. Mail.company.com is belongs to exchange 2013 server and the exchange service are load balanced and secured by BIG-IP LTM, APM and ASM. and the mycompany.archivemail.com is belongs to a different server, and this URL is not publicly accessible (It’s using for accessing the old/archived emails only). In order to achieve the same, I have created a pool with name archive-pool for the archive servers and the following iRule for changing the user requested url. when HTTP_REQUEST { if {[HTTP::uri] contains "/archive"} { HTTP::header replace Host "mycompany.archivemail.com" Pool archive-pool } } And the iRule is applied to the Exchange VS and placed on the top of Exchange_2013_apm_combined_pool_irule7 (which is created by iAPP)) But its not working, I am getting the page not found error, If anyone can help to resolve this issue it would be highly appreciated.308Views0likes3CommentsRewrite Portion of URI
We are moving one of our web services to a new pool of servers which will contain a different virtual directory structure. The legacy servers used a separate virtual directory for each customer, but the new servers will utilize a common virtual directory. We do not want the customers making any changes and have been asked if we can perform the rewrite. The legacy request looks something like this... https://www.mysite-old.com/CUST_A/Login.aspx?C=98620001&UN=COMS8365&PW=av99er89uj&F=EN The new request will need to be rewritten like this... https://www.mysite-new.com/app.web/APPvirtualDirectory/Login.aspx?C=98620001&UN=COMS8365&PW=av99er89uj&F=EN /CUST_A/ will need to be rewritten with /app.web/APPvirtualDirectory/ but everything after will need to be retained. Also, the legacy server virtual directory names can be any length so I will not be able to replace a fixed number of characters. Any help would be greatly appreciated.256Views0likes6CommentsHow to forward the requests to another URL using iRule
Hi, I have a scenario wherein I have to forward all the incoming requests to a virtual server (https://abc.com) to another URL something like https://test.com/o/maintenance.html which hosts the maintenance page, so that users could see the maintenance page. However, this should be transparent to the end user viz, they should not see https://test.com/o/maintenance.html in their browsers when accessing the virtual server in question. Can anyone help me with the irule in this regard. P.S. I have tried the iFile but the maintnance page is only working for IE but not with Chrome & Mozilla. Thanks in advance, MSK249Views0likes2Comments