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

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

Similar Messages

  • Host header-value matching where a port is used.

    Hi all,
    Would anyone be able to advise on the match value where the host header includes a port, e.g. www.mysite.com:9080. My question here goes to the collon preceding the port. Can this be done? If so, how?
    If not, what is other option to match on, wildcard? The scenarion is same site being accessed, so www.mysite.com remains unchanged, but on varoius ports, around 20 differnt ports. Issue is port is part of host header.
    Any guidance or advice would be appreciated.
    Thank you.
    Paul.

    Hi all,
    Would something like this below work? Trying to catch all the various ports that may be utilised (9080 -9099).
    class-map type http loadbalance match-all L7-APP1
    match http Host header-value www[.]mysite[.]com[:]90*
    Thanks
    Paul

  • ACE ; probe for host header-value

    Hi,
    we have following probe setup. sometimes this probe fails because server resets the connection but server team claims there aren't any issues with server.
    probe https probe1.abc.com:10456
      port 10456
      interval 34
      passdetect interval 17
      ssl version all
      expect status 200 200
      header Host header-value "probe1.abc.com"
      open 1
    is there a way to validate able probe using linux/linux servers? i.e. using unix/linux server is there a way to send that host header-value to the servers and see if servers are responding with 200 OK status? if not from Unix/Linux servers than if there any otherway to validate it apart from validating it from ACE?
    Thanks...

    or can we do it using window? maybe using firefox on windows machine?
    please advise.

  • Using Wildcards in HOST Class-Map

    I want to use a wild card to match a HOST in a class-map. I want to match multiple hosts for the same site:
    ? Support.Cisco.com
    ? Employee.Cisco.com
    ? Helpdesk.Cisco.com
    I want to match this with *.Cisco. Will this work?

    You are right, my mistake
    http://www.cisco.com/univercd/cc/td/doc/product/software/ios124/124cr/hqos_r/qos_m1h.htm#wp1128712

  • Host Header Flash Forms Problems

    Hello,
    I'm running CFMX 7.01 on IIS 6, Windows 2003 Server....
    I've created an intranet application that uses several flash
    forms. The site is located in the folder of
    C:\Inetpub\wwwroot\CorpComWeb. This can be referenced from the
    Default website by
    http://sandy/corpcomweb/ OR
    http://CorpComm (after adding an
    internal DNS host header and then referencing it in Website -
    Advanced - Host header value). This works great for every page
    EXCEPT the two pages that contain CF Flash Forms. When I try to
    access these pages using
    http://CorpComm/flashformpage.cfm it spins into infinity (no
    error just never loads). If I access the page by
    http://sandy/corpcomweb/ the
    page loads fine.
    Any ideas as to why this would be?
    Thanks in advance!

    Ok, stupid mistake on my part.
    When creating the new site in IIS, I forgot to add a virtual
    directory pointing to CFIDE...

  • Host Header under https 1.1

    How can I set up under https 1.1 a proper host header using the url class? I tried it a couple of times in proxy environments and I got back the message: ?Missing host header?.
    Many systems do ignore the host header and it works fine. However typically proxy connections do not! Therefore we need a solution for this proxy environment.
    A possible solution would be to do every thing by hand. However this is painful.
    Does someone knows a solution or at least can someone tell me a workaround?

    Many systems do ignore the host header and it works
    fine. However typically proxy connections do not!Funny, I would have said the opposite. When formatting an HTTP request through a proxy, the entire URL (including protocol, host/domain & port#) is included in the start-line. Therefore the 'host' header is not ever needed by a proxy - it can get everything it needs from the start-line (although I expect some proxies are implemented to use only the 'host' header...and aren't smart enough to look in the start-line). Any web server configured to host multiple domains will NEED the 'host' header.
    Make sure you've got the entire URL in your start-line when sending to the proxy...that could be the problem.

  • Get Custom SOAP Header Value in SOA Suite 11.1.1.6 using BPEL 1.1

    Hi Experts,
    We are using SOA Suite 11.1.1.6 and in one of the projects we have requirement to retrieve custom SOAP header value.
    This is enhancement to existing process which is developed using BPEL 1.1 and deployed to Production. So we cannot convert this now to BPEL 2.0
    We suggested to use custom XML element in Header the definition of which will be defined in custom XSD and stored in common location. However the 3rd party who are invoking this service will not be able to do any customization in their process to pass custom XML header.
    Please can you help me in providing any approach through which we can retrieve custom Header value from SOAP header using BPEL 1.1
    I have read some blogs for retrieving the custom XML header but they are using BPEL 2.0. I would like achieve this functionality using BPEL 1.1
    Appreciate your inputs.
    Thanks in Advance - RK

    Hello RK,
    Have you've tried to put the bpex:outputHeaderVariable on the invoke activity of the invoked service.
    <invoke name="Invoke"
                bpelx:outputHeaderVariable="HeaderVariable"/>
    Where the "HeaderVariable" reflects the XSD Datastructure of the received header.
    This is also specified here in section 6.19.1 How to Receive SOAP Headers in BPEL
    Please note that the exact header must be specified in the WSDL of the invoked service.
    Also note that in case of a soap fault. No header will be returned from the invoked service but only a /soap/body/fault part.
    Good luck!
    Melvin

  • SMP 3.0: how to handle header values in the SOAP WS using Integration Gateway

    Hi Experts,
    We have a requirement from our current customer where they are providing us a SOAP WS.For one of the method we are passing “username” & “password” as input parameters and getting one security key (some unique number) in the response. We are able to do OData modeling for the same method. So far, it is fine.
    For other method, we have to pass that ”security key” in header along with some other parameters in the body section. While doing the request mapping for this method, we don’t see any option for this key parameter apart from those parameters (in that body section).
    We found one publicly available WSDL to reproduce the same scenario:
    e.g http://api.geosvc.com/services/soap?wsdl . To access its one of the method/operation GetPlace,We have to pass APiKey and Cursor value in the header section.
    <wsdl:message name="GetPlaceRq_Headers">
    <wsdl:part name="ApiKey" element="tns:ApiKey"/>
    <wsdl:part name="Cursor" element="tns:Cursor"/>
    To get APiKey, we have to register first. http://www.geosvc.com/register , once its done, you will get one APiKey as below:
    The same API key has to pass to access “GetPlace” method. So we tried it in SOAP UI to understand how exactly it should work:
    As you can see below, for the method “GetPlace”, we are passing values as in:
    Header Value
    Cursor
    blank
    ApiKey
    df7f8cc90e3345b4980cf6631f33a32d
    Body
    Country
    US
    Place
    HOLLYWOOD,CA
    Also got the response.
    When we do modeling (more precisely request mapping as below) for the same method we don’t see any Header related parameters. We can see only parameters which are available in the BODY section.
    We thought if we can get APIKey parameter in the body sections only, then it would be easy to map with. Right?
    What do you suggest how we should handle this kind of scenarios?
    CC: Mustafa Saglam, Jeff Gebo, Bjoern Woppmann
    Regards,
    JK

    Unfortunately the public example is a slightly different use case.  You have to register to get a static API key that is used in all calls.  That is something you would hard code into the headers.
    I think you are asking about a dynamic key they changes on each login.  It would be great if we had a public one that upon login returned a unique session key to be used in subsequent calls so we could better test and model accordingly.
    If you were using Agentry the answer would be yes you can do this.
    --Bill

  • Using Wildcards in Value Help

    Hi,
    I have a input filed ZPERNR and i have assigend PREMN search help on this field.
    I am able to search people in the organisation and it all works great until I use wildcards
    When I enter SMITH in the last name in the value help it comes back with the list of people whose last name is SMITH
    Problem:
    When I enter SMITH* in the last name I get no results
    In the SQL trace I noticed it changed my SMITH* to smith%
    Not sure if there is any sap note to this issue
    Any ideas?

    Hi Jörg,
    Yes the icon (Pattern) does appear after I enter, however I still don't get any results.
    The weird thing is the value help works perfectly alright in r/3
    Not sure why it is not working for me in the portal.
    Thanks for your reply
    Kal

  • Value Mapping Replication - XIVMService.execute() search using wildcards

    Hi, i'm replicating value mappings to IS' cache.
    Replication works fine. Using RWB i'm can list all the data in the Value Mapping Groups cache. I can also perform a loose search entering something like "12*" in the 'Value' field and the result contains all the mappings having 'Value' staring with "12".
    The problem arises when i try to do the same search with
    XIVMService.executeMapping
    because it just tries to do an exact search insluding the wildcard as the source value. Has anyone tried this? I need help urgently, otherwise i'm afraid i'll have to change my solution radically.
    Thanks in advance
    Nicolá

    >I can also perform a loose search entering something like "12*" in the 'Value' >field and the result contains all the mappings having 'Value' staring with "12".
    Are you doing this to manually search for the value in the RWB or is it in the Runtime.
    > The problem arises when i try to do the same search
    > with
    XIVMService.executeMapping
    because
    > it just tries to do an exact search insluding the
    > wildcard as the source value. Has anyone tried this?
    Where are you trying this search? What i mean to ask is in the runtime ? Are you using some UDF/ Java code to read the data from the value mapping table?
    If my answer/ question is completely off track , I would really like to know what you are trying here
    Regards
    Bhavesh

  • How to add sites to a SharePoint server on port 80 without using the host header?

    Hello,
    I have a SharePoint 2013 server with 5 sites on it.  2 are using port 80 and the 3 are using other ports.  I like to add 2 more sites to the server.  If I was going to add 2 sites with different ports that are not port 80, what do I need to
    do?  I noticed the host header file on the server has no sites configure in it. 
    How would I add 2 sites to the server that has 5 other sites?
    Thanks
    Paul

    Where is the Calendar hosted at the moment?   If it's within SharePoint, there is a "Connect to Outlook" button, which will export the calendar as a shared calendar to your Outlook instance.  I'm never tried the reverse, so if you're using
    a shared calendar, you may need to consider moving it.  When they are linked, they'll be a two way synch (updates from one end will push to the other).  On top of this, you and your team will be able to set-up differnet alerts.
    Additionally, within the product you can create an overlay, calendar, which allows you to merge different calendars.  Each source calendar can have a different colour picked for it.
    In regards to running PS scripts as an end-user, not much if anything can be done here.  All I can think of is adding a codeplex workflow extension, work that into a workflow and then plug a script into that.  Your IT guys might not let that fly.
    Hope that helps
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.

    Hi,
    I'm running WebLogic 5.1 sp10 on a Solaris box and I get the
    following error:
    java.rmi.RemoteException: java.lang.InternalError: Can't connect to
    X11 window server using ':0.0' as the value of the DISPLAY variable.
         at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
         at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:59)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:120)
         at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58)
         at java.awt.Font.initializeFont(Font.java:264)
         at java.awt.Font.(Font.java:298)
         at com.hrw.xls.EmailXLSThread.getCellWidth(EmailXLSThread.java:162)
    caused by the following code fragment:
    Font f = new Font(fontName, fontStyle, fontHeight);
    FontMetrics fm = (new Panel()).getFontMetrics(f);
    Have I just forgotten to set an environment variable? I would prefer
    not to install bulky pieces of software, but if that's what it takes
    to get over this error, so be it.
    Thanks, Dave A.

    A Java AWT, X11 problem posted in the weblogic ejb newsgroup. I haven't been in here for long, but
    that has to be a first.
    If you have the DISPLAY env variable set to :0.0, you have to be at the console on a Solaris box
    running the XServer. 'xdm' I think is the code that has to be running. Also, I think the format is
    <hostname:0.0> or better <hostname:0> unless you are on a multi-headed workstation. Something like:
    export DISPLAY=hostname:0
    where hostname is the name of the host running an XServer and the .xhosts file allows access to the
    XServer from the display client.
    Apparently, you are not at the console?
    Anyway, I don't think there is a newsgroup here that I could even recommend to cross-post this to as
    it is not a WebLogic question. I think I would try the Discussion Forums at http://java.sun.com.
    Bill
    "D. Alvarado" wrote:
    Hi,
    I'm running WebLogic 5.1 sp10 on a Solaris box and I get the
    following error:
    java.rmi.RemoteException: java.lang.InternalError: Can't connect to
    X11 window server using ':0.0' as the value of the DISPLAY variable.
    at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
    at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:59)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:120)
    at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58)
    at java.awt.Font.initializeFont(Font.java:264)
    at java.awt.Font.(Font.java:298)
    at com.hrw.xls.EmailXLSThread.getCellWidth(EmailXLSThread.java:162)
    caused by the following code fragment:
    Font f = new Font(fontName, fontStyle, fontHeight);
    FontMetrics fm = (new Panel()).getFontMetrics(f);
    Have I just forgotten to set an environment variable? I would prefer
    not to install bulky pieces of software, but if that's what it takes
    to get over this error, so be it.
    Thanks, Dave A.

  • OSB Header values

    I am trying to use the http header values to make decisions in the OSB workflow. On the Transport tab I have the 'Get All Headers' to Yes.
    I don't see the http Host value in the $inbound to make the decision. How can I get the http headers in the $inbound variable? I know this is straight forward, but I must be missing a setting in the service somewhere.
    Here is what I current see in the $inbound variable:
    <con:service>
    <con:operation>STATUS</con:operation>
    </con:service>
    <con:transport>
    <con:uri>/Workflow/proxy/MyServiceV1.0</con:uri>
    <con:mode>request-response</con:mode>
    <con:qualityOfService>best-effort</con:qualityOfService>
    <con:request xsi:type="http:HttpRequestMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <tran:headers xsi:type="http:HttpRequestHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
    <http:Content-Type>text/xml; charset=utf-8</http:Content-Type>
    <http:SOAPAction>"GET"</http:SOAPAction>
    </tran:headers>
    <tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">utf-8</tran:encoding>
    </con:request>
    <con:response xsi:type="http:HttpResponseMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <tran:headers xsi:type="http:HttpResponseHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
    <http:Content-Type>text/xml</http:Content-Type>
    </tran:headers>
    <tran:response-code xmlns:tran="http://www.bea.com/wli/sb/transports">0</tran:response-code>
    </con:response>
    </con:transport>
    <con:security>
    <con:transportClient>
    <con:username>&lt;anonymous></con:username>
    </con:transportClient>
    </con:security>
    </con:endpoint>
    Any help would be greatly appreciated .

    On some other project i noticed too you won't see the value of the user-header parts in the header.
    try putting for example tcpmon in between to see which data arrives at the oracle service bus.
    After that you could use something like
    $inbound/ctx:transport/ctx:request/tp:headers/tp:user-header[lower-case(@name)="x-ab-normal"][1]/@value
    (copied from this post : $inbound/ctx:transport/ctx:request/tp:headers/tp:user-header[lower-case(@name)="x-ab-normal"][1]/@value)

  • Moving host header site collections to a different URL

    Background:
    We have a SharePoint 2010 farm with a single web app.  Within this web app, we have over 40 site collections.  Unfortunately when they were created, they were all put under their own explicit managed path.  So now we have over 40 managed paths
    and the recommended number of managed paths is 20.  We are planning to create wildcard managed paths and move site collections from
    https://servername/sitename to
    https://servername/U/sitename to reduce the number of managed paths. 
    The implications of this are clear for site collections that are not host header site collections.  Site collection admins will have to adjust any URLs that refer to items in the site collection.  It is less clear for host header site collections. 
    From the user's point of view, the host header URL itself will not change.
    1.  Will internal links in the host header site collections need to be adjusted like in regular site collections?
    2.  Will the e-mail address of e-mail enabled lists and libraries change?
    I would be grateful if anybody has an answer to this.
    Sheila

    If you moved http://sitename.webapplication.domain.com (ie. a host named site collection) to http://webapplication.domain.com/managedPath/sitename then it would obviously have a different URL.
    That is not what you were describing in your first post, the terminiology is a little specific and I think you're getting it a bit wrong. A web application (often) has a host header, that will not change moving a site from an explicit path to a wilcard path.
    A host named site collection is very different and more complicated
    If you are planing on converting
    http://webapplication.domain.com/site1
    http://webapplication.domain.com/site2
    http://webapplication.domain.com/site3
    to
    http://webapplication.domain.com/sites/site1
    http://webapplication.domain.com/sites/site2
    http://webapplication.domain.com/sites/site3
    Then you are not using Host Named (or host header) Site Collections, those are bog standard managed path site collection addresses.
    Now to answer your question: for users to access the sites after the move they must use the /sites/siteX version, if they use an old link then it will not work.
    There is a trick in SharePoint that will keep links that exist within the site collection consistent so that some URLs will be maintained. This is called a relative URL and means that URLs that are within the same Site Collection will automatically work
    with the new URLs.

  • Is it possible to use wildcards to match cell contents in an if statement?

    I need to return a ID along with some other information on a page by page basis, so that the information comes out linked by position.  I use a couple of loops and if statements to navigate through the document.  I am able to use exact matches of cell contents which is fine when the contents doesn't vary.  But the IDs, though they have a similar pattern, are all different. In a menu driven search, I am able to find what I need with '150^9^9^9^9^9-^9^9^9' But when I try putting this (or any number of [0-9], *, ? combinations) it fails.  Is it possible to use wildcards?  The symbol used for the match (==) makes me suspect that it is not possible and that only literal, exact matches will work.  But I wanted to check with the experts before giving up.
    Thanks
    pcbaz

    Thanks for the input.  You're right, a GREP search is much more efficient.  But what I'm trying to do and the circumstances here don't allow me, I think,  to go that route. I am trying to generate a list of values coming from several textframes on a single page and have them come out so that I can tell which values belong together.
    I'm using an inherited document with masters that were created 'manually';  the index numbering for textframes and tables is random. I navigate through the pages, looping through textframe indices asking ' does this textframe exist?' If so, I ask if it is a table -- if no, it is a simple textframe and I ask about the ID, if yes, I ask if the contents of cell (0,0) (invariant position and contents) are equal to the table I want..  I am sending the ID and other pieces of information from the table to one row of a new table on a new page.  So the ID and other information from a single page are linked by being in the same row.
    I know this a little 'off-normal' -- I'm using the search to navigate through the document and find things by location the way you do with a spreadsheet.  I have devised a work-around that helps me get around the fact that the ID is not invariant.  I create a list of the (exact) IDs from another document, equating them to a variable ('a').  I then loop through the list of IDs and ask if the contents of the textframe is equal to 'a'..This works o.k, unless there happens to be an extra space, a different kind of hyphen, etc. It would be so much easier if I could use the wildcards that work in a menu-driven text or GREP search in script just to ask about the contents of the textframe.
    Thanks again
    pcbaz (Peter BIerly)
    P.S. we have since rewritten the masters so this problem will not exist in the future -- we now know exactly which textframe and/or table indices to refer to to get any particular bits of information and don't need to ask questions about the contents.

Maybe you are looking for