Redirect based on URL content

Hi,
I have received a request to forward traffic based on http header; specifically if the header contains www.sample.co.uk it should go to its regular serverfarm, if it contains www.sample.co.uk/wordpress it should go to a different serverfarm, probably containing a single server - the wordpress server.
My first question is - is this even possible with the ACE? If so, does anyone have a sample config they could post here?
Lastly although there are answers to similar questions before I do appreciate any help anyone can give me as I don't have much time on the ACE, and they are pretty critical to our company, i.e. I will be taken out the back and shot if I cause an outage.
I can post detailed existing config if required.
Best wishes
Mike

Hi Mike,
Can't let you get shot then huh:)
class-map match-all WWW-VIP
  2 match virtual-address 20.20.20.10 tcp eq www---->This 20.x.x.x should resolve to normal url
class-map type http loadbalance match-any wordpress
  2 match http url /wordpress
policy-map type loadbalance first-match SLB_LOGIC
  class wordpress
    serverfarm wordpress
  class class-default
    serverfarm WWW-FARM
policy-map multi-match CLIENT_VIPS
  class WWW-VIP
    loadbalance vip inservice
    loadbalance policy SLB_LOGIC
    loadbalance vip icmp-reply
Above configuration will ensure that www.sample.co.uk/wordpress goes to serverfarm wordpress and everything else is sent to WWW-FARM or whatever the farm(regular) you want it to go.
Let me know if you have any questions.
Regards,
Kanwal
Note: Please mark answers if they are helpful.

Similar Messages

  • Different links in the detailed navigation, based on URL alias

    <u>What I'm trying to do :</u>
    Based on URL aliases /irj/portal/individual or /irj/portal/business
    I will dynamically add an UME group to the already logged in user.
    <u>Filter :</u>
    If clicking on /irj/portal/individual I will store "group=individual" in the context, and add UME group individual, if clicking /irj/portal/business I will store "group=business" in the context, and add UME group business and remove individual, and then redirect to the same URL.
    <u>Configuration</u>
    Each UME group has a one-to-one mapping to a Portal role.
    I will place an ACL on the PCD content, based on group, hiding/showing aggregated folders, hanging under the roles.
    <u>Wanted end-result</u>
    Different links in the detailed navigation, based on URL alias.
    <b>My question is how you would implement the filter part, mentioned above ?</b>
    Portal app or J2EE servlet filter or something else ?

    Hi sunil,
       Create a JSPDynPage component(C) having 2 hbj:link whose hrefs point to these 2 iViews(A and B). U can get the href of the iView by previewing it(for A and B). Create an iview from the par component (C) and add it to the DLN so that it shows the links to ur iViews(A and B). U can make the Show Tray property of this iView (C) to false.
    Regards,
    Harini S

  • HTTP Redirect based upon SRC IP Address

    Is there a way to perform an http redirect based upon user's source IP address on the CSM/GSS environment?
    Logic:
    IF < src ip address is within exception list > THEN
    http redirect to URL2
    ELSE
    http to URL1
    END

    Is there a version of this solution (redirect by client source IP) for the CSS?
    I'm attempting to redirect clients from a few specific networks (source IP's) to the VIP of a second CSS using a service-type redirect and "prefer " ACL commands:
    clause 10 permit any 1.1.1.0 255.255.252.0 destination content owner/content-rule prefer service-type-redirect
    There is an "any any destination any" last clause in the ACL for the remaining source IPs. The ACL is applied to the incoming circuits leading to the webservers.
    A show of the ACL's shows all responses - no matter the client source IP - being caught by the permit any clause at the end of the ACL.
    Extra points: this is a one-arm design with source group destination applied (to return server traffic to the CSS) and traffic is https with SSL terminating at the servers (no SSL module). Content rules are set to be sticky for srcip. Both CSSs are answering content-based DNS queries for the same URL with their local VIP address (but controlling which DNS server clients query isn't readily possible, so static proximity using DNS didn't provide the answer).
    Each CSS is in a different data center: the idea is to keep traffic local by redirecting non-local traffic to its "local" (the other) CSS if services are active (and to keep traffic on the first CSS if the services at the redirected-to CSS are down).
    Don't want too much, do I? ;-)
    Thanks for everyone's time -
    -K.

  • Redirecting a domain URL to a file

    Is there any SAF directive (e.g NameTrans) to redirect a domain URL (e.g http://www.xyz.com/rob.txt) to a file rob.txt sitting at location /x/y/rob.txt (other than root directory rob.txt).
    Bascially I want to achieve any request coming to http://www.xyz.com/rob.txt redirected to /x/y/rob.txt so that I can use another rob.txt (not the one lying in root dir /) for this domain.

    If you want different hosts to respond with different content, you'd normally create separate virtual servers. Each virtual server could have its own document root, so foo.example.com/rob.txt could map to a different file than bar.example.com/rob.txt.
    If you really want to special case things for a given hostname and URI, you can do that. The following will redirect requests for /rob.txt to /x/y/rob.txt only if the hostname www.example.com was used in the request:<Client urlhost="www.example.com">
    NameTrans fn="redirect" from="/rob.txt" url="/x/y/rob.txt"
    </Client>

  • How can I create a redirect to an URL like in SICF?

    Hi,
    we offer  the payroll (com.sap.pct.erp.ess.paycheck_service / sap.com/ess~rem/payslip2) in our portal which is a Java-WD. Whenever we import a modified version of the corresponding HRFORM into the P-system the application aborts with an error because the HRFORM has to be generated first after the import.
    I wanted to get rid of this problem by using the SICF where you can define a redirect to an URL (I wantet to switch to a "service is under construction"-WD). Unfortunately the SICF can only be used for WD4ABAP-services as I know - not for Java.
    Has anybody an idea how to solve my problem? I want to switch to a "service is under construction"-WD whenever there's an abort while processing the payroll application.
    We don't have any Java skill.
    Greetings,
    Steff

    You can place the html in component folder. src>mimes>Components. and can be accessed by code
    try {
    String url = WDURLGenerator.getAbsoluteWebResourceURL(wdComponentAPI.getDeployableObjectPart(),"<redirect>.html");
    } catch (WDURLException e) {
    wdComponentAPI.getMessageManager().reportException(e.getMessage(),true);
    1) you can use the url to navigate to the redirect page or can try exit plug.
    nikhil

  • Can we control the PDF file name that is generated by BI Publisher based on the content in the input PDF

    can we control the PDF file name that is generated by BI Publisher based on the content in the input PDF?

    No, there isn't. The way you're using the file is not recommended. You
    should use a review tracker to avoid getting in the way of one another.

  • Create a group based on file contents

    Hello!
    I'm investigating options to create a dynamic group based on periodic check of file content. I have a Shavlik updater which is patching custom groups based on file contents. I would like to create a dynamic group which should return all Windows Computer
    classes that are found from this file. Anything close to sensible was found at https://www.youtube.com/watch?v=gxASdzHFTOU where author created an attribute of based on "SELECT * FROM CIM_DataFile" and then created a group out from it - but it checks
    file existence, not content, would launch against all Windows Clients (and we have 1000+ of these monitored) - certainly not a valid way.
    Is there any way I could do that in a simple, straightforward way?
    Thanks in advance

    Ok, I got it. Have you tried modifying the group membership with powershell?
    Modifying Explicit Group Membership in SCOM 2012 with PowerShell
    http://blogs.msdn.com/b/rslaten/archive/2013/06/27/modifying-explicit-group-membership-in-scom-2012-with-powershell.aspx
    Automate your group creation with Powershell
    http://blog.coretech.dk/kra/automate-your-group-creation-with-powershell/
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Sorting incoming files based on payload content

    Hi,
      I have a file>XI-> FILE scenario...I need to sort the incoming file based on payload content...But my understanding is in XI each line item would be processed one at a time...Is it possible to sort the entire file before beginning to process???
    -Ken

    Hi Ken,
    you can try to create generic content sorting with java mapping:
    /people/ravikumar.allampallam/blog/2005/06/24/convert-any-flat-file-to-any-idoc-java-mapping
    Regards,
    michal

  • Display webpart based on list content

    Hello,
    Is is possible to either display a custom home page or a different web part based on if content exists in a list or not?
    I have a list configured for data entry.  From that data, I use SQL reporting services to generate and display graphs and pretty stuff.
    Is is possible, for when a user logs into sharepoint (2013), if they have not entered any data yet, then display the data entry form, or if they have already entered data, display the reporting services dashboards?
    Andrew Huddleston | Hillsong Church | Sydney

    You can use javascript client object model to first check if the current logged in user has the data entered in the list on page load and onsuccess method of your javascript async call you can check if you have retrieved any count for the user in the list.
    If data exists then using jquery either show your reporting webpart or hide it and instead show your data entry form. Below are some pointers
    http://sharepoint.stackexchange.com/questions/73032/get-current-user-in-client-object-model-with-javascript
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/c437ecc4-c757-483f-8175-f92860d184be/hideshow-webpart-data-on-buttonclick-using-jquery?forum=sharepointgeneralprevious
    http://msdn.microsoft.com/en-us/library/office/jj163201%28v=office.15%29.aspx#BasicOps_SPListItemTasks
    Geetanjali Arora | My blogs |

  • Need to invoke a process from a column link and then redirect to a url

    Is it possible to invoke a process from a column link then redirect to a url
    I want to invoke a process that has a pl sql block of code which will do some table inserts and then redirect the user to an external url.
    Any help would be appreciated.

    Howdy Scott,
    I thought this might help me but I've got a dynamic form with apex_application.g_f01(i) items on it ie tabular form. How can I take the value of these arrays with me to the temporary page with the onload process?
    Thanks
    Gary

  • Duplicate checking based on the content of the incoming file

    Hi,
    We have a requirement where in we have to check whether a file has been duplicated or not based on the contents of an incoming file.The threads which I have seen in SDN deal with the duplicate checking based on the filename of the incoming file.
    The incoming file has the following structure :
    Recordset                                     Occurance-1
           |....... Idoc                              Occurance 1...unbounded
                       |...... segment             Occurance 1
    We are required to make a check based on certain fields which occur in the segment.There are about 4 fields which we will have to take from the incoming file and carry out the check.These 4 fields exist in different segments.We will have to update a ztable with these 4 fields and then perform an rfc lookup to check for the contents of the incoming files with this table,and reject or process the file based on whether the entries exist in the table or not.
    Please let me know if there is any way this can be achieved.
    Appreciate if anyone could help me on this.
    Thanks and Regards,
    Induja

    SAP PI 7.1 Mapping Enhancements Series: Graphical Support for JDBC and RFC Lookups
    Use this crazy piece for any RFC Mapping Lookups!
    The specified item was not found.
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/5877---- [original link is broken] [original link is broken] [original link is broken]
    Imp
    SAP NetWeaver Process Integration 7.1: Mapping Enhancements Blog Series
    SAP PI 7.1 Mapping Enhancements Series: Mapping Enhancements Demo
    /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    How to check JDBC SQL Query Syntax and verify the query results inside a User Defined Function of the  Lookup API
    The specified item was not found.
    The specified item was not found.
    Making CSV File Lookup Possible In SAP XI !!!
    SAP PI 7.1 Mapping Enhancements Series: Parameterized Message Mappings
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1888-----Imp [original link is broken] [original link is broken] [original link is broken]
    Triggering XI Alerts from a User Defined Function
    Aspirant to learn SAP XI...You won the Jackpot if you read this!-Part II

  • Splitting the Idoc data into 2 diff files based on file content.

    Hi Experts,
                               Mine is a SAP - XI - File Scenerio. A perticular Idoc when triggered has a segment 4 with a Field KONDART. This Segment 4 is optional in nature and can appear n nos of times. Initially KONDART carried a value ABCD  and created a File called PLU, containing 14 fields.
       Now the value of KONDART can carry ABCD as wll as many other values.
    The current requirement is , if the Value of KONDART is ABCD , EFGH, etc etc , then it will create the PLU file as usual, but the moment the KONDART value is XYZ , then it will create the PLU as well as a new file called MRP, carrying only 4 fields .
        I can understand that I need to make a new DT, MT , MI . I can' make out, if i call it in Messege Mapping the PLU as well as MRP structure and map them according ly, I simply cant make out , hw to make it conditional based on the content of KONDART.
        Should I go for messege splittng, like in the second messege type , the Structure will get mapping data only if the KONDART Value is XYZ.
    Is my understanding OK.
    I think I can check this in Messege Mapping itself. calling 2 messege types and put a CREATEIF kind of logic for the KONDART = XYZ condition.
    Pls correct me / Comment .
    Regards,
    Arnab Mondal.

    Hi,
    If I have understood your problem correctly then the solutin can be like this..
    First of all create two separate mappings as well as Interface mappings (based on your different data types).
    In ID, just do the conditional "Interface Determination", so whenever your condition(s) will be true the respective interface mapping(s) will be triggered and offcourse create two CC respectively.
    Now when you do the "Receiver Determination" assing correct CC to corresponding interfaces.
    Regards,
    Sarvesh

  • Searching based on the content of an uploaded document

    Hi,
    Is it possible to search based on the content of the document I have uploaded. The system used is ECC 5.0.
    Eg : I have uploaded resumes of employees and I have search based on their skills. Is it possible to search based on the skill which is mentioned in the resumes and provide the output.
    Thanks,
    Sarath.C

    I can't do that without knowing the structure of your document, it all depends on wether the data you need is in a fixed position in a fixed line or it's in a variable position and the correct line or position needs to be found before using it.

  • No redirection to different url upon http connections limit exceeded

    Hi,
    As of Standalone OC4j 10.1.2, if you want messages to be redirected to a different URL when the maximum connections limit is reached, you would include the HTTP redirect URL to max-http-connections tag inside server.xml.
    <max-http-connections max-connections-queue-timeout="120" socket-backlog="50"
    value="100">http://optional.redirect.url/page.jsp</max-http-connections>
    I have a standalone OC4j 10.1.3, and would like to be able to redirect to different URL when maximum connections limit is reached but the above max-http-connections does not work and I am not redirected to different URL when maximum connectionns limit is reached. I read user guide of OC4j 10.1.3 and there is no mentioning of max-http-connections at all. In there, they talk about limiting concurrency via http thread pool but there is no discussion as to the mechanism of redirecting users to a different URL where I can display a user friendly message to say "Server is busy, please try again later..." instead of browser display a message "Page cannot be displayed"..
    Please advice,
    Thanks

    Any thoughts on above issue ? please help.
    thanks
    Sam

  • Retrive Records based on the content in a Clob Feild

    Retrive Records based on the content in a Clob Feild
    I have a Table NoteFile which contains a Clob Feild NoteFileContent
    and is refrenced by PK DocID
    i need to Match DocID with other Tables Document and folderdocument
    My Query is as Below
    SELECT Doc.Pap_Doc_ID, Doc.Pap_Doc_Name , NF.NoteFileContent
    From NoteFile NF , Document Doc, folderdocument FD
    Where Doc.Pap_Doc_ID = FD.FoldDoc_ID and FD.FoldDoc_ParentID <> 3 and
    NF.DocID = DOC.Pap_Doc_ID And NF.NoteFileContent Like '%a%'
    The above query throws
    ORA-00600: internal error code, arguments: [504], [0x7ADEBE00], [2], [1],
    [cache buffers chains], [723], [0], [0x7ADEBE00]

    Hi,
    We can resize it.Always give the height and weight in
    percentage format. and turn off the horizontal n vertical scroll
    policy in u r main application.
    Hopes it helps you...

Maybe you are looking for

  • New Multi-OS/CPU aware virus broke through virtualbox. For a reason.FYI

    FYI (all) Dear sir (RMS @ GNU), my apologies. That e-mail concerned the embedding (secretly) of personal information during the make process of certain gnu software but there's a new developent and I'm extremely mad : I have been looking for ways to

  • Automatic creation of clearing document

    Hi experts, We have a scenario where: 1. Co code 1 is created as vendor in Co code 2 and Co code 2 is created as customer in Co code 1. 2. Co code 1 sells to customer of co code 2, this generates AR in co code 1 and AP in co code 2 3. Co code 2 makes

  • Problem in stock transport order

    Hi all,   In stock transport order in item condition tab is not updating .will it updates are not .If it updates what are conditions are to be maintained Thanks & regards vr

  • Help: iTunes freezes when I try to change the music folder location

    Hi everyone, I want to change my iTunes music folder location but every time I click on the change button (Edit > Preferences > Advanced > Change) iTunes freezes. All of my music is in an external drive and I recently reinstalled windows, so I had to

  • Garritan Personal Orchestra Crashes Logic

    I recently purchased Garritan Personal Orchestra to use in Logic express. The other day I created some tracks. When I went to open the project today everything loads (eventide plug in, UVI workstation) but crashes when it gets to PO and its Aria play