Forum Discussion
10 Replies
Sort By
- hooleylistCirrostratus
- The_BhattmanNimbostratusTake a look at the following. It's not the exact item you are looking for but it's close enough that you can replace the event and make it work.
- The_BhattmanNimbostratusLooks like you beat me too it :-)
- kiamars_51328NimbostratusThank you
- kiamars_51328Nimbostratushi, I am new tp irule, would you give me an exmple,
- hooleylistCirrostratusWhat port is the virtual server defined on? What port are the pool members defined on? Do the web servers require that the Host header value contain the port number (ie, is the virtual host definition expecting the port to be explicitly listed)?
when HTTP_REQUEST { Check if host header does not have port already if {[string length [getfield [HTTP::host] ":" 2]] <= 0}{ Append the port to the host header value HTTP::header replace Host "[HTTP::host]:300" } }
- kiamars_51328NimbostratusThx for reply, I can strip off the port from browser but I am also trying to send it to another directory or applect on webser how do that using above code that you provide to me.
- hooleylistCirrostratusYou can modify the path with HTTP::path (Click here) or the full URI with HTTP::uri (Click here).
- Ken_CottrellNimbostratusThis is a cool rule and works around the issue, but is there a way to fix this on the application server? WAS in our case?
- L4L7_53191Nimbostratus@skynard: If I recall this should all be handled correctly by the plugin configuration. Be sure and add a virtual host to the application server for this application, then re-generate your plugin. This (or something very close to it) should do the trick.