06-16-2011 02:05 AM
Hi Guys,
Seem to be having some trouble with URL maps, and trying to search for a particular sub-domain in a URL. Let me explain:
We will have a number of applications frontended by our CSM VIP such as:
sftp.poc.monash.edu.au
callista.poc.monash.edu.au
I'm trying to get the CSM via policies and URL maps, to search for say "callista" and direct this traffic to a particular farm as below...however when i use the match statement the connections are dropped.
map CALLISTA url
match protocol http url *callista*
!
map CALLISTA-SFTP url
match protocol http url *sftp*
!
policy CALLISTA
url-map CALLISTA
sticky-group 197
serverfarm CALLISTA
!
policy CALLISTA-SFTP
url-map CALLISTA-SFTP
sticky-group 198
serverfarm CALLISTA-SFTP
!
vserver CAL-POC-DECVIP
description decrypt VIP for SERVERFARM CAL-POC
virtual 172.16.11.116 tcp www
persistent rebalance
parse-length 4000
slb-policy CALLISTA
slb-policy CALLISTA-SFTP
inservice
So i'm wondering if there is a better regular expression statement i can use to ensure that all the traffic that has "callista" in the URL is directed to a particular farm?
thanks
Sheldon
06-16-2011 02:31 AM
Having a read through the CSM config guide I think i may have found the answer. I noticed that the URL maps only work on searching a "path' after the domain e.g. the presence of either "index" or "cep":
callista.poc.monash.edu.au/index.html
or
callista.poc.monash.edu.au/cep/
I've tested the above logic and this holds true....therefore there doesn't seem to be a way of searching for a "subdomain" in the URL as opposed to various bits of a "path". That is i'd like to search for "callista" or "admissions" instead of the path
callista.poc.monash.edu.au
or
admission.poc.monash.edu.au
Can someone confirm this one way or another? And if the sub-domain search is not possible, are there alternatives to getting it to work?!
thanks
Sheldon
06-16-2011 02:49 AM
Realised that I can use a header map instead where I can then search on the "Host" part of the HTTP header!
All good now!
Cheers
Sheldon
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide