cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
632
Views
0
Helpful
2
Replies

Using URL maps to search for a particular sub-domain in a URL

sgonsalv
Level 1
Level 1

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

2 Replies 2

sgonsalv
Level 1
Level 1

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

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

Review Cisco Networking for a $25 gift card