Forum Discussion

Fincke's avatar
Fincke
Icon for Nimbostratus rankNimbostratus
Aug 30, 2019

uri modification , rewrite uri http-request/http-response

We have addet some micro-web-server to the web-service-farm..

 

and we vould like to modyfi the incomming uri, to hit the "root" at the micro-webserver, and add the uri to the resonce.. like :

 

incoming request : http://domain.com/app/guest/something

I allready have an irule selecting the ury :

 

if {[string tolower [HTTP::uri]] starts_with "/app/guest" }{

  node 10.93.6.100:8101

  snat automap

 

but the server does not have this path : "/app/guest".. all the content is in :"/"..

 

so is it posible to "remove" some of the uri "/app/guest/ and replace it with "/".. so the request for the server only contains : "/something"..

and the respond to the user insert the "missing" uri, so the respond again would be : http://domain.com/app/guest/something ..

 

Michael