Directing traffic to specific server based on URL

I've got 2 servers in a server farm on round robin load balancing set up. Right now, it load balances requests to www.abc.com. I would like all requests for www.abc.com/admin to go to server A all the time. What's the best way of accomplishing this? I've tried setting up stickiness with no luck so I'm not sure if that's the right approach. Thanks.

First create class-map with your url:
class-map type http loadbalance match-any ABC
  3 match http url /admin.*
Next create new server-farm with only one server:
serverfarm host SERVERFARM.SERVER1
  rserver RSERVER.ONE 80
    probe PROBE.ONE
    inservice
Next modify your policy-map type load-balance:
policy-map type loadbalance first-match POLICY.LB
  class ABC
    serverfarm SERVERFARM.SERVER1
  class class-default
    sticky-serverfarm STICKY.SERVERFARM.ONE
Everything what is matched by Class-map will be forwarded to Serverfarm. Simple and very scalable.

Similar Messages

  • ACE 4710 - can I dynamically sticky all traffic to 1 server based on URL?

    Hello all, I'm new to the ACE 4710 and need to know some details about stickyness.
    As background, we are a small company with a SaaS product and a pair of webservers.
    I have set up the loadbalancing default L7 Load-balancing rule to sticky based on a Cookie based Stickey Group.
    That seems to be working and session traffic is sticking to a server during the user's session.
    Based on a request from our outsourced developer they would like the Loadbalancer to not only sticky the users sessions, but also sticky a url to a server.
    I would like this to happen dynamically as each of our clients will have their own url based on our standard domain like clientname.fixeddomain.com and I don't want to have to come back to the loadbalancer every time we add a client.
    As I said, I'm new to these devices but understand the concepts, and am in the position of having to make it work little to no tranining on this hardware and no budget at this point to pay someone else for configuration and setup.
    I just need to know at this point if I can stick all requests for a specific URL to a server to avoid caching issue while those sessions are active and have new connections to other client urls balanced among the webservers.
    Hopefully this request makes sense.
    Thanks,
    Mark Steeves.

    Daniel,
    Thanks for the reply, but I cannot reach the URL you included.  It gives me a 403.
    Therfore without reading the article, I wanted to ask if the proper setup would be:
    1. Default L7 load-balancing action: Primary action: Sticky: Stickey Group using
    Type = HTTP Header: Header name = Host
    2. Server Farm: Predictor: Least Connections or Round Robin to distribute the load between the 2 web servers.
    Using this setting in testing, it looks like all the traffic keeps going to 1 server only.  Granted there is not much traffic t the servers, but I have 2 different url being tested. url1.ourdomain.com & url2.ourdomain.com
    If you have another link for the above document, please let me know.
    Thanks,
    Mark Steeves.

  • Direct traffic onto an LSP based on packets ToS value

    Hello...
    I am trying to push traffic onto an LSP thats mutiple paths created as below.  
    interface Tunnel3080
    ip unnumbered Loopback0
    tunnel destination 10.253.253.136
    tunnel mode mpls traffic-eng
    tunnel mpls traffic-eng path-option 11 explicit name CTel-C32-CGx-CSnf-Cwil
    tunnel mpls traffic-eng path-option 12 explicit name CTel-CGlb-C1275-CMar-CWil
    tunnel mpls traffic-eng path-option protect 11 explicit name CTel-CGlb-C1275-CMar-CWil
    ip explicit-path name CTel-CGlb-C1275-CMar-CWil enable
    next-address 10.254.0.241
    next-address 10.254.0.242
    next-address 10.254.0.2
    next-address 10.254.1.82
    next-address 10.254.13.1
    ip explicit-path name CTel-C32-CGx-CSnf-Cwil enable
    next-address 10.254.0.242
    next-address 10.254.0.241
    next-address 10.254.0.2
    next-address 10.254.1.82
    next-address 10.254.13.1
    Traffic is coming in from an interface vlan 503;  and is going to lets say 10.11.1.2.
    I've an ACL as below to catch the traffic into an ACL.
    ip access-list extended TOS9TrafficTo10-11-1
       10 permit ip 10.32.21.2 10.11.1.2 tos 9
    I tried with below to direct the traffic onto an above tunnel LSP.
    route-map BO_LA permit 10
    match ip address TOS9TrafficTo10-11-1
    set interface Tunnel3080
    and then applied the map to the interface as below...
    interface vlan 503
    ip policy route-map BO_LA
    Its not working..   and need some assistance..  I know route maps are not the solution here as they're used for routes and not the actual traffic, I believe.  Is there any other solution.
    -Tarkesh

    Tarkesh,
    This should actually work because a route-map can also be used for policy-based routing and not just for routing information manipulation. I am in fact surprised that your configuration has no effect. The first thing coming to my mind here: is the interface Vlan503 the incoming interface for this traffic you want to send via specific MPLS TE tunnels? Is the traffic actually routed, i.e. passing through the Vlan503, or is it simply switched within VLAN 503?
    Also, how do you know your configuration has no effect?
    There is an option of class-based tunnel selection for ingress traffic, however, that feature is supported only on selected platforms. You can read (much) more here:
    http://www.cisco.com/en/US/docs/ios/mpls/configuration/guide/mp_te_tun_select.html

  • Connecting specific server node from portal

    Hello,
    I am trying to access specific server node with URL "http://<Server>:<Port Number>/irj/portal;sapj2ee_irj=<Node ID>"
    I am able to access portal page through the above URL, but even while entering incorrect Node ID, portal page is accessible which should not happen ideally.
    I am trying to configure an alerting mechanism so that I can know which server node is up and whiich one is down when users try accessing portal.
    Please provide me steps to access server node through portal and also if there is some specific portal parameter which controls the above mentioned anomaly.
    Regards,
    Anuradha

    Hi Anuradha,
    Please use something like:
    http://<Server>:<Port Number>/irj/servlet/prt/portal/prtroot/com.sap.portal.navigation.portallauncher.default;sapj2ee_*=<NodeID>.
    You can use
    java_scriptj<colon>alertOpenparentesisdocument<dot>cookiecloseparentesis
    to find out if you connected to the proper node.  Note the sapj2ee_* parameter is optional so if the value provided is not correct it will connect you to one of the available nodes.  Remove the underscore from java_script.
    Replace:
    java_script with javascript
    <colon> with :
    Openparentesis with (
    Closeparentesis with )
    SCN would not let me post the symbols
    Best regards,
    Duncan
    Edited by: Duncan Speidel on Nov 22, 2011 11:20 PM

  • Does PI need a direct connection to third party or can work with a proxy server based connection to third party?

    does PI need a direct connection to third party or can work with a proxy server based connection to third party?

    Hi,
    It basically includes 3 systems, one is our ECC sender system, middle one is PI box and third one is the receiver system. Data is successfully reaching to PI system from our sender system.Now we want to forward this to our third party system from PI box.
                                                                    I want to know that such sending of data requires direct connection to third party or it can be done by proxy server based connection to third party.If it is possible then what are the steps to do this?
    Regards-
    Anuj Nogja

  • ACE load balancing based on URL

    I am trying to send traffic to one server or another based on the URL. I want traffic to foo.com/selfserv to direct to server A and traffic to foo.com/webui to direct to server B. I found URL inspection etc but I am not sure how to apply it the scenario as I do not want the ACE to inspect all inbound HTTP requests.

    The ACE performs regular expression matching against the received packet data from a particular connection based on the HTTP URL string. To configure a class map to make Layer 7 SLB decisions based on the URL name and, optionally, the HTTP method, use the match http url command in class-map HTTP load balance configuration mode.
    The ACE performs regular expression matching against the received packet data from a particular connection based on the RTSP URL string. You can configure a class map to make Layer 7 SLB decisions based on the URL name and optionally, the RTSP method, by using the match rtsp url command in class-map RTSP load balance configuration mode.
    Configuring Traffic Policies for Server Load Balancing:
    http://www.cisco.com/en/US/docs/app_ntwk_services/data_center_app_services/ace_appliances/vA3_1_0/configuration/slb/guide/classlb.html

  • I18n for Server-Based JavaHelp Helpsets?

    Hi Folk,
    Can anyone tell me how can we implement internationalization for Server-Based JavaHelp Helpsets?
    As an example, I have below code snippet for Index.jsp and I am invoking JavaHelp from this page.
    <jsp:useBean id="helpBroker" class="ServletHelpBroker" scope="session" />
    and
    <jh:validate helpBroker="<%= helpBroker %>" helpSetName="MyJavaHelp/alarms/Alarms.hs/>
    As per my understanding,
    In case, I have to support more than one language, then I must have so many .hs files for each lang. But the above( <jh:validate > ) tag accepts only fully qualified url.
    Please let me know how to solve this else if you have any alternative.
    Thanks in advance.
    Pachu

    We have sucessfully used javahelp with a custom network protocol handler
    to fetch the documentation from specific "packages" in the classpath.
    The same technique could be used with a database.
    Drop me a line if you're interested in more detail.
    Gordan Vosicki

  • UCCX 7 server based monitoring doc

    Hi there,
    I am looking to setup server base recoding with RSPAN. The only documentation that i could find relating to this is:
    http://www.cisco.com/en/US/products/sw/voicesw/ps556/products_tech_note09186a00801a62a8.shtml
    This is for CRS and CM verstion 3.
    Is there any more up to date documenation? or is this still valid?
    Is there any other documentations relating to server base recoding with RSPAN?
    Thanks for any help?
    alexis

    Hi Alexis,
    The design of server-based monitoring in UCCX 7.0 hasn't changed much since 3.x.  The configuration on UCCX is fairly straightforward.  You'll want to make sure that desktop monitoring is unchecked for the agent phones in Cisco Desktop Administrator, and you'll want to make sure that the Post-Install tool (C:\Program Files\cisco\desktop\bin\PostInstall.exe) has the 2nd NIC of the server selected for Monitoring/Recording.
    What is important for the SPAN setup is that when the RTP packets reach the second NIC of the server (Connected to SPAN destination port) that the MAC address of the phone remains intact).  The monitoring/recording service in 7.0 filters the packets by MAC address to determine which RTP packets are part of the conversation.  Layer 3 devices can change this MAC address as the packet is routed, so it's important the SPAN configuration picks up the traffic directly from the phone and relays it to the server's second NIC intact.
    Thanks,
    Brendan

  • Referencing a "locally installed" Java applet from a server-based HTML page

    How does one reference a "locally installed" Java applet from a server-based HTML page (i.e. via the applet, object, or embed tags)? I have seen references in documentation that this is possible, but I have not seen any examples. I have tried a few things, but nothing seems to be working.
    Some background...
    I'm working on a web site that aggregates Internet video. For many users, I would like the site to work "without" requiring Java to be installed (or any prompts, etc.). This version of the site allows users to stream videos directly over the Internet and does not require any sort of access to the local system.
    However, in addition, I have a download manager that can be installed on the local system. Currently, it's a Windows-based "service" that is always running in the background, downloading files, etc. (with plans to later support other OSes).
    My dilemma is trying to communicate between my web site running in the local browser (executing JavaScript code) and the download manager. I call this component the "gateway". I need the gateway to be able to do the following:
    1) Pass user credentials from the web browser UI to the download manager (so it can communicate with my servers).
    2) Check the status of downloaded videos
    3) Launch a local media player (such as Windows Media, QuickTime, etc.) (or perhaps tell the download manager to launch the media player).
    Under Windows XP, I have an ActiveX control that can do these things. It communicates with the download manager via reading/writing to a shared XML configuration file.
    Unfortunately, under Vista and IE7 Protected Mode, ActiveX controls have become very restricted and my gateway no longer works. As such, I am looking at using Java for the gateway (also giving me the additional benefits of supporting additional browsers and OSes).
    From my understanding, I believe I can created a "face-less" Java applet, whose methods can be called from JavaScript. Ideally, I'm thinking I could install the applet onto the local system at the same time the download manager is installed. This would give the applet the security permissions it needs to communicate with the download manager.
    Thanks for any help and suggestions!

    Hi,
    Put the .jar file and the .class file in the path mentioned in one of the aliases in the plsql.conf file like /images or create
    a seperate directory and create an alias like /applets "path" in the plsql.conf file.
    <html>
    <body>
    <applet code=com.chartapplet.chart.BarChartApplet
    codebase=/applets/
    archive=/applets/chart.jar width=300 height=200>
    <param name=background value="white">
    </body>
    </html>
    Hope this helps.
    Thanks,
    Sharmila

  • My i web version is 2.0.4. Can I publish my i web site directly to a FTP server address?

    After Apple stopped hosting with Mobile Me, I moved hosting for my i web built web site to Network solutions. I was told by a Network solutions technician that I can publish an updated iweb site directly to a FTP server address. But I do not see that as an option with my 2.0.4 i web version. Can I update my
    version of i web? Or do I need to purchase a later version of i web for this function?

    You can open your iWeb 2 site in iWeb 3 and continue as before with the addition of FTP. However you should be able to upload with no problem in CyberDuck or Transmit - both are easy to use and reliable. Note that when you publish to a local folder you should usually upload the contents of the folder to the server, not the folder itself, unless you want the folder name (which must have no spaces in it) to appear in the URL.
    Cyberduck is free (donation requested): Transmit is $34 but I think better. You will need the server address (your hosting service can tell you that), and your username and password for that service.

  • DataSocket Server will not start when the Launch DS Server if Local URL.VI is bundled into a LabVIEW application.

    I want to run a LabVIEW application on several machines remotely that do not have LabVIEW installed (licensing issues). Hence I have built a LabVIEW executable with the RunTime Engine to install on all of these remote machines.
    The VI has a bi-directional link, using Datasockets, to a machine with DAQ and Image acquisition functions. It primarily receives data items, but also the capability to change data items so it needs to run the "Launch DS Server if Local URL.VI" in order to publish data to the DataSocket server.
    When I run the pre-built VI on a machine that has LabVIEW Developers Edition installed, everything works fine - ie.
    the DataSocket server starts on the remote machine. However when I build the *.exe application and run it on a machine with and without LabVIEW Developers Edition installed the VI successfully subscribes to the DAQ and Image Acquisiton machine, but it does not start its own connection to the Data Socket server, and hence does not publish the data that the DAQ machine needs to suscribe to. IT seems that the Launch DS Server if Local URL.VI is bypassed? I have fiddled around with the Build settings but to no avail.
    In short, how do I get the DataSocket Server to run in a LabVIEW executable? Is it indeed possible? Any advice would be welcomed.
    When distributing a Labview Application (*.exe) with Data Socket Server Publish functionality, the DataSocket server does not start and hence no data can be sent by the Remote PC to the Server. The VI successfully retrieves data from the DS Server. I have used the "Launch DS Server if Local URL.vi" in the ditributed application but for some r
    eason this VI is not executed when I run the executable. How can you force the DataSocket Server to run with executable LabVIEW applications?

    Ryan,
    How to add Datasocket Server Control.vi?
    Source Files only show Project Files.
    So, I added Datasocket Server Control.vi file to the project first.
    Then I added it to Always Included < Source Files < Application Properties (Build Executable).
    Last, I built the Executable, but it didn't work.
    Can you help me.
    Thank you.
    Pedro Raposo

  • Logging into a specific server in a terminal server farm

    We have several terminal server farms and in each farm we have the need for 1 user to always log into a specific server in the farm.   This is due to a little piece of sortware that is required for a device that only this one user has and
    the fact the it is licensed to only one server.   The user must use that server for it to work.  I want to include this server in the farm because it seems silly to have a server for only one user.    How can I point one PC/user
    to the same server in the farm all the time?  We are using the Connection Broker and NLB which seems to work just fine for all other users. 
    Thanks

    Hi Steve,
    What operating system version are you running on your servers?  Server 2008 R2?  Server 2012?
    When you configure a RDS farm to be load-balanced by the connection broker, all servers in the unique farm are intended to have the exact same applications installed.  The idea is the RDCB can redirect users to different servers as needed to balance
    the load, and that you may take any particular server (or servers, if you have enough) offline and your farm will still work.
    Now, there are always exceptions and I understand it would be nice if you could assign a user/app to a specific server to handle a case like yours.  For example, you would understand this particular user or app would not be load-balanced or highly
    available and if the one server was down it would not work, but other users/RemoteApps would be load-balanced as usual.  This is
    not a feature of the current versions of RDS.
    To do what you want the "best way" would require writing a custom plugin for RDCB.  In your custom plugin you would specifiy the load-balancing logic.  For example, when one of the "special" users logs on, your logic would direct them to the
    correct specific server, but when a regular user logs on you would allow the normal RDCB load-balancing logic to apply.  Please see here for more information:
    Terminal Services Session Broker Plug-in reference
    http://msdn.microsoft.com/en-us/library/windows/desktop/cc644962(v=vs.85).aspx
    Besides writing a custom plugin I suggest you consider the following workarounds:
    1. Instead of running the app under RDSH, run it in a Win7/Win8 VM pool if possible.  Either a pool of identical VMs or assign each user that needs to run the app to a dedicated VM.  Downside of this is added complexity, licensing for VDI,
    and an increase in hardware resources required to run the VMs.
    2. Have the user connect to the server using /admin.  You can change the permissions so that a specific group may connect using a /admin connection, without them being administrators.  Downside of this is that some features
    of RDSH are not present when connected as an administrative RDP session, and only two Active admin sessions are permitted.
    3. If running Server 2008 R2 you could set the server so that it does not participate in load balancing and have the users that need to run this special app connect directly to the server's ip address instead of to the farm name.  Downside of this
    is that you will get more uneven load distribution, however, it may not be that bad if you are balancing your initial connections using NLB and you have all of your regular users connecting to the farm name as usual.
    4. Have a separate server in each farm (not joined to the farm) just for this one app.  If possible they could be VMs with not much resources dedicated to each.  I know this is what you did not want to do, but I mention it because an
    extra base Windows Server license, one for each farm, is likely less additional cost than licensing the special software on
    all servers.  If you can run the app in VMs then the additional hardware cost of doing it this way is reduced.
    -TP

  • Client accessing a specific server under a vip ACE Module

    Hi All,
    I have a need to allow QA/developers to check updated appliactions on a particluar server.
    Is there any way on an ACE blade to allow a client to access a particular server under a vip?
    The ACE is configured in Routed mode and the version is A2.3.4.
    Any help or pdf's would be much appreciated.
    Thanks.
    Jack.

    Hi,
    Thanks for the response.
    I have one more query, that I would appreciate some assistance with.
    If I have an exisitng serverfarm with 6 rservers in it, is there any way to direct a specific client to a specific server.
    I understand in one respect that if they are all inservice this may not be possible, but I thought I would ask the question anyway.
    Thanks again for the assistance.
    Jack

  • How to do http session stickiness based on URL patterns?

    Is there a feature within the WL plugin for Apache that would allow me to emulate the "jvmroute" session stickiness behaviour as provided by Tomcat and its plugin. I would like to have the control to tie requests from http clients to particular WLS servers in a cluster depending on the URL. For example http://foo.com/web01 requests would be forwarded to an appsererver app01 and so on. For all other requests (e.g http://foo.com/web), the WL plugin would do its normal load balancing ignoring the stickiness. From my understanding the WLS inbuilt http session stickiness is based on JSessionIDs which are exchanged using cookies - which is something i cannot use in my case since i want the stickiness based on URL patterns.
    I am using WLS 10.0 with Apache 2.2.4 on Linux.
    Thanks
    Ramdas

    Session is not replicated across all the servers in the Cluster.
    Apache knows which server to go using the JSession ID.
    There is a concept of primary and secondary, secondary is selected based on the replication groups there are configured in the cluster.
    you can configure the cluster so that /web01 requests go to different cluster, and /web requests go to different cluster.
    but you can get all the funtiionalities from the single cluster.
    Do you have any java caching that you are not able to replicate across the cluster ?(I know this can be done too).
    let me know what you are actually trying to solve by doing the behavior you explained.

  • Opening help directly to a specific Topic/Header

    Is there a way in any of the RoboHelp output options that
    will allow me to open the help file directly to a specific Topic /
    Header? If someone is on my website and is on the ordering page and
    has a question, when they click on the Help button on that page,
    can the help system open directly to the Topic on ordering?
    Thank you.

    G'nite dude.
    Thanks a ton for all of the responses. I know now how to get
    the right URL to jump to the topic.
    I'm still sleuthing the other half of this, though. Once I
    get the right URL, I can copy and paste it into the broswer address
    bar and it will go to the correct topic. Now I need to be able to
    email this link and have someone else open it to a specific topic.
    (Sure I could tell em to copy and paste the link from the email
    into the browser... now that's just too easy).
    Putting it as a link in Outlook, though, is still giving me a
    headache and it's only bringing up the start page when the broswer
    window comes up. The #Topic22.htm section of my link gets chopped
    off.
    Must be something to do with the email settings, because
    Outlook is checking mail attachments, and it's telling me:
    You should only open attachments from a trustworthy source.
    Attachment: StartPage.htm from X:\Stuff Folder\Help Project
    Would you like to open the file or save it blabbity blah...
    This is how our area is set up for security, and it appears
    that Outlook's only seeing the stuff
    before the # sign.

Maybe you are looking for

  • Income Tax Increasing each Month

    Hi All, While running Payroll. In June 2011 the Income Tax is 1480/- INR, While we run for July its become 1538/-, in Aug 2280. Income Tax is Increasing each Month. I am not aware why this is happening. Need Help. Thanks and Regards Ravi Narayan Padh

  • CD Burn Error"4280" -- My Story and Happy Ending

    First--a little background: Today I realized that it was two weeks since I backed up my iTunes folder. I'm planning to install a new (larger) secondary hard disk because I need more storage space. Since I need to get all files off my current backup d

  • How to attach a file in the utl_mail utility in oracle 10.2.0

    hi, where is the default file destination to attach a file in the utl_mail utility in oracle 10g. i have to send an attachment.. regards, Deepak Edited by: Deepak_DBA on Nov 4, 2009 3:10 PM

  • Automatic clearing

    Hi All, Prepare Automatic clearin (OB74) is set at the chart of accounts level. The Chart of account in question is being used by multiple company codes. Our issue now is a few company codes want the particular GL xxxxx to be cleared on the basis of

  • Help printing documents to PDF

    Adobe Acrobat 6.0 Pro deleted...no CD have serial Number..