IIS Virtual Directories help needed. Thanks!
Hello,
We have roughly ~10 virutal directories in IIS with the iRule below and having some issues.
Config:
2 servers (Nodes)
10 pools for each virtual directory (LB - Round Robin) (Config - basic)
VS - All defaults - Protocol Profile Client (tcp-wan-optimized); Oneconnect (oneconnect); http profile (default http ); HTTP compression (wan-optimized-compression); web acceleration (optimized-caching) -- no default pools selected -- no Persist (per our web dev team as they are handling it on the backend.)
iRule: this is only a portion of the iRule as the rest the the same.
when HTTP_REQUEST {
if {([string tolower [HTTP::uri]] starts_with "cassadmintest") and ([HTTP::uri] equals "/")} {
HTTP::redirect "http://cassadmintest/cassadmin"
pool CassAdmin_test
} elseif {([string tolower [HTTP::uri]] starts_with "enoticesadmintest") and ([HTTP::uri] equals "/")} {
HTTP::redirect "http://enoticesadmintest/enoticesadmin"
pool Enoticesadmin_test
} elseif {([string tolower [HTTP::host]] starts_with "pcmtest") and ([HTTP::uri] equals "/")} {
HTTP::redirect "http://PCMTest/PCMTest"
pool PipelineCustMgmt_test
}
}
----------------------------
What we are trying to accomplish is when a user types cassadmintest in the address bar it redirects them to http://cassadmintest/cassadmin and so on and so forth with all of the other directories. The redirection work flawlessly however we are having other issues that comes with this.
Our issues:
1. When I visit the site not all of the images show up. I use fiddler to see what's going on and there's tons of 504's. If i keep refreshing sometimes the images will show up and other time it won't. This is why I turned on oneconnect, http commpresion... etc.. on the VS. With all of these on or off I am still having issues. I even messed with chunking and still no luck.
2. when browsing the page everything works fine (except for the image issues) but when step away for a few mintues and refresh the page I get a 404. For troubleshooting, I turned on persist (source IP) still the same.
This all works fine on the Netscaler and I am in the process migrating everything to the F5 and this has been a road block for me. Thanks in advance!