irule for sending traffic on particular subdirectory of website
I have small query w.r.t irule for sending traffic on particular sub directory of the server rather than sending to root directory of the website.
Server is working on below mention website. http://aol.xyz.com:8060/ ----- Pool created is aol_pool is working on port 8080 http://yahoo.xyz.com:8443/OA_HTML/RF ----- Pool created is yahoo_pool is working on port 8443 http://google.xyz.com:7443/IA_HTML/RF ----- Pool created is google_pool is working on port 7443
Since customer want to access all three website on single IP Address; I have created Virtual server on port 443 port and called below irule.
when HTTP_REQUEST { if { [HTTP::host] equals "aol.xyz.com" } { pool aol_pool } elseif { [HTTP::host] equals "yahoo.xyz.com" } { pool yahoo_pool } elseif { [HTTP::host] equals "google.xyz.com" } { pool google_pool } else { discard } }
For this my aol.xyz.com is working; but other website i.e. yahoo.xyz.com and google.xyz.com is not working; since the website is working on particular website. Request you to please help to create irule is this.