Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Using wildcard in Host header-value

I have a redirect in my configuration that if a host header matches a certain value, then it will redirect to https.

Originally I had the full host header, www.domain.com (actually www[.]domain[.]com).

However, I found out that if a user just enters "domain.com", without the www, it is not being detected and redirected.

I want to add a wildcard for the host portion.  I tried .*[.]domain[.]com.  But it seems to be hit or miss.  Sometimes it seems to work, but other times it doesn't.

Is this the correct format for what I'm trying to do?

Thanks.

Jason

1 REPLY
Bronze

Using wildcard in Host header-value

Jason-

 

  Can you send all of the relvant configuration? technically what you have should work, but there are some other things you might need (persistance rebalance, non-case sensitivity, etc.)  Also, you could just add another line to a match-any class for the 2nd header instead of including every possible combination.

Regards,

Chris Higgins

246
Views
0
Helpful
1
Replies