CSS loadbalancing based on parts of the URL

HI,
I've to do loadbalancing based on parts of the URL.
The URL will look like this:
www.myserver.com/a/b/c/d/x=12345/bdc/*.htm
If the x=<digits> is includes I've to use server1-3 1 if the x is not included I've to use server 4-6
I can right now think of two (2) methods:
1) url ="/x=*"
2) using a header-field group with field "request-line" and the operator contains.
Now my two questions:
- Is it enough to define in method 1 only "/x=*" or do I have to write down the whole path (/a/b/c/d/x=*) or is it possible to do url="*/x=*".
- Is there any other way to have this sort balancing done?
- Which method is best practise?
Thanks in advance for answering.
Kind Regards,
Joerg

Hi Gilles,
thanks for your reply.
So both methods are possible. From my point of view method two is more flexible even if less specific. Is there any other draw back you can think of using method two, the one with the header group.
Kind regards,
Joerg

Similar Messages

  • Firefox no longer displays any part of the URL that I am visiting. How do i get it to display?

    I'm referring to ANY part of the url. It just shows a blank page. Running Win XP Pro

    Is there any evidence that there is text on the location bar when you type something and try to select and copy the text (Ctrl+A and Ctrl+C)?
    Does it help if you open a new window?
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    You can check for problems caused by a corrupted localstore.rdf file.
    *http://kb.mozillazine.org/Corrupt_localstore.rdf

  • How to get only the last part of the URL in the doGet() method?

    In the doGet() method is there a way to check what URL it was called from ? For example the URL was: http://localhost:8080/myproject/jsp/randomPhrase.php (the php here is purely for misleading purposes - it's all Java really). in the doGet() method I would like to get the "randomPhrase" part of the URL only - to determine where to redirect the user. How can I do that?
    Thanks.

    Hello there,
    As it seems to me the part of the URL you're looking fo,r corresponds actually to the name of the servlet, so why don't you just call the getServletName method?

  • Content query webpart use a part of the URL as filter

    Hey,
    I have on root site in the site collection a list. Now I like to build up a site template (from which the user can create sub sites form the root site in the site collection.
    In this site template I like to bring on the homepage a content query webpart. The content query webpart has to show one item from the list on the start site.
    How can I configure that the content query webpart use a part of the URL as filter?
    Url is like:
    http://Server/SiteCollection/ID/home.aspx
    The ID must be the filter criterion in the content query webpart. How can I do this?
    Thanks for your help
    Stefan
    Viele Grüße Stefan
    Kontakt unter [email protected]

    Hi Stefan,
    You can create your own CQWP by subclassing the default one.
    Then you can override the CAML query to add criteria found in the URL.
    Here is more information and sample:
    http://www.andrewconnell.com/blog/archive/2008/02/18/Subclassing-the-Content-Query-Web-Part-Adding-Dynamic-Filtering.aspx
    http://msmvps.com/blogs/laflour/archive/2008/05/29/subclassing-content-query-web-part-to-override-caml-query.aspx
    Regards,
    Ludovic Caffin

  • Whenever i upload my website using ftp, the site name ends up being part of the url, Can this be fixed?

    Whenever i upload my website using ftp, the site name ends up being part of the url, Can this be fixed?

    Publishing to a local folder is shown here...
    http://www.iwebformusicians.com/iWeb/Publish-Website.html
    ... and how to upload the files here....
    http://www.iwebformusicians.com/Search-Engine-Optimization/Upload.html

  • How do I get rid of the hightlighting of part of the url?

    Part of the address (mozilla.com from https://support.mozilla.com/en-US/questions/new?product=desktop&category=d4 etc) is highlighted. Why? It feels like riding a bike with safety wheels. This "feature" needs to become optional. I want to see the whole adress all in the same print. One of the reasons I stopped using Opera is because of their partial obfuscation of the url, please don't go the same road.

    That is a new feature in Firefox to highlight the domain in the URL bar. You can change a preference to make the entire URL dark.
    Change a preference:
    #type '''''about:config''''' in the Location/URL bar and press Enter.
    #if you see a warning, accept (promise to be careful)
    #Filter: '''''browser.urlbar.formatting.enabled'''''
    #in lower panel, double-click that item to toggle value to '''''false'''''
    I am not sure whether or not you need to re-start Firefox after doing the above for the change to take effect. Test and if it does not work, then re-start Firefox and test again.
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]

  • Is anyone using PAM for archiving e-mail? I am having trouble opening archived e-mail attachments using Firefox. I know the reason for this is part of the url gets left out when using Firefox. Works fine with Internet Explorer.

    This part of the path https://mail.domain.org/owa/ (see below) when place in allows Firefox to open the attachment.

    Autodiscover service on Exchange seems to be ok from the result of testing. We might change our mind and check if this is a network issue.
    If you are using Windows 7 or higher version OS, try to run the following command in CMD to disable the Autotuning function:
    Netsh interface tcp set global autotuning=disabled
    For more information, please visit here:
    http://slowpctexpert.blogspot.com/2010/12/speed-up-windows-7-disable-autotuning.html
    Tony Chen
    TechNet Community Support

  • Not using Blog Entry as part of the URL

    hi all,
    When I publish my iWeb site containing a blog to a folder, I noticed that some of the folder is using my bolg entry/topic as part of the folder name.
    Is it possible to get iWeb not use this.
    thanks in advance.

    Here;s an entry on Kyn Drake's site that might help you:
    http://ww2.makentosh.com/tipsfromtheiceberg/Blog/Entries/2008/6/22A_ShortURL.html

  • JavaContentSet - use an environment var as part of the url-path

    Hi,
    I startet to use JDeveloper beside Eclipse.
    As such i got some ressources in my Eclipse workspace i want to use in my JDeveloper Projekt.
    Its easy to tell JDeveloper to link some Resources from the Eclipse Workspace into my JDeveloper Workspace. But i dont like the url-path Syntax. In my Case its ../../eclipseWorkspace/eclipseProjekt.
    It works, but its far away from perfect, because other developers would prefer different workspace layouts. As such it would be fine to be able to extend a environment variable to get the url-path. Example: "%ECLIPSE_WORKSPACE%/project/src/main/java" instead of "../../eclipseWorkspace/project/src/main/java".
    Is there a way to reach this goal?
    thx
    Bernhard

    Uf, sorry
    the alias has to be the first element of the RID.
    So if the RID is:
    /documents/user01/tester.txt
    and user01 is logged in, call:
    .../irj/go/km/docs/~alias~/documents/<user.id>/tester.txt
    or:
    .../irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/~alias~/documents/<user.id>/tester.txt
    (i've tested it now for being sure).
    Romano

  • How do I pass the part of the url that matched url-pattern to JSP?

    Hello,
    I have a web app called ptest.war deployed in JBoss. In my web.xml I have:
    <servlet-mapping>
    <servlet-name>GetImage</servlet-name>
    <url-pattern>/images/*</url-pattern>
    </servlet-mapping>
    and:
    <servlet>
    <servlet-name>GetImage</servlet-name>
    <jsp-file>DoImageRequest.jsp</jsp-file>
    <load-on-startup>1</load-on-startup>
    </servlet>
    In DoImageRequest.jsp, I want to know what was requested by the user (so I can set some response headers and then re-direct to the image they requested), so if I go to:
    http://localhost/ptest/images/i1.jpg
    I want to have "/images/i1.jpg" available to me in the JSP, so that I can do a jsp:forward to the requested image, but none of the getters on the request object give me that string.
    request.getServletPath() returns "/images" and request.getPathInfo() returns "/i5.jpg".
    So do I need to construct what the user asked for by concatenating these two values?
    The reason I was testing this was because I wanted to set no-cache in the response to the request for the image. Is there an easier way of doing that without having to direct the request to a jsp so that the jsp can set the response headers, which seems a little long-winded to me?
    Many Thanks,
    Paul Smith

    I want to have "/images/i1.jpg" available to me in the JSP, so that I can do a jsp:forward to the requested image, but none of the getters on the request >object give me that string.Even if you manage to construct that, such a request path would be intercepted by your jsp because it maps to /images/*.
    You would end up with infinite recursion.
    To circumvent that, you can change the folder that stores the image - call it something like img and then you just need append the request.getPathInfo().
    getServletContext.getRequestDispatcher("/img"+req.getPathInfo()).forward(req,res);
    The reason I was testing this was because I wanted to set no-cache in the response to the request for the image. Is there an easier way of doing that >without having to direct the request to a jsp so that the jsp can set the response headers, which seems a little long-winded to me?You could have a filter intercept all requests for *.img, add the response headers and pass the request along to the actual resource. That would be easier and more intuitive. If your web app has a good fronting like an apache web server, I think you can cache your images on the web server and set a property that would instruct the web server to set a no-cache header in response when it serves the image.
    ram.
    Edited by: Madathil_Prasad on Mar 26, 2010 7:20 PM

  • Does '.html' HAVE to be a part of the URL?

    I want to create a new page to an existing site which will
    become its own section and want to be able to send/advertise that
    URL (which will have no ref to the main site & no link to it)
    eg. www.mainsite.co.uk - I want to advertise:
    www.mainsite.co.uk/subsite
    So.... I created a page called subsite (for this eg) but I
    have to add on '.html' to access it. I don't want that, I want it
    as a clean, easy URL - the .html will make it too long and fussy.
    How do I do this?
    Thx 4 any help.

    Assuming that "index.html" is the proper default filename,
    which only your
    host can tell you.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Dooza" <[email protected]> wrote in message
    news:frba27$rej$[email protected]..
    > Deansplit wrote:
    >> I've had three answers now to solve this but I don't
    understand one!
    >> Sorry for being thick - but in this option, where is
    control panel (i
    >> work in DW once in a blue moon - didn't think this
    would be such a task
    >> tho!)
    >> :-)
    >>
    >
    > If you want www.mainsite.com/photos/
    >
    > Do the following:
    >
    > 1. Create new folder called photos
    > 2. Create a page IN the new folder and name it
    index.html
    > 3. Edit index.html to make it look the way you want it
    to, add photos,
    > links, whatever...
    >
    > Get yourself this book:
    >
    http://www.amazon.com/Webmaster-Nutshell-Third-Stephen-Spainhour/dp/0596003579
    >
    > Its got the basics, its the book I started with.
    >
    > Steve

  • I am a power user with 100 open URLs and need a way to grep open tabs by a part of the URL. I can create an add-on if the open URLs are exposed.

    I imagine I could query an sqlite3 table for open windows but don't know the details for what is available. I trust firefox to always be able to open a previous session that I use open windows as sort of a task list. Duplication of information is futile.

    I actually think the default single session storage is a bit fragile. Do you use the [https://addons.mozilla.org/en-US/firefox/addon/session-manager/ Session Manager] extension or [https://addons.mozilla.org/en-us/firefox/addon/tab-mix-plus/ Tab Mix Plus] to provide greater depth?
    The "Switch to Tab" feature of the address bar provides some of the functionality you want. However, the fact that it shows "Switch to Tab" rather than the address on that tab makes it hard to see if it's the one you want.
    If you want to build your own add-on, here are a couple that might serve as a starting point or resource for understanding how to work with tabs in Firefox. I haven't tried them myself. (MPL licensed for code re-use.)
    * [https://addons.mozilla.org/en-us/firefox/addon/tabhunter/ Tabhunter] - search for a string in URLs across all windows, choose from dialog
    * [https://addons.mozilla.org/en-us/firefox/addon/showcase/ Showcase] - view tab thumbnails across all windows, with a find feature

  • Variable for restriction based on part of the String

    Hello Experts,
    I have a characteristic named Product Hierarchy (0PRODHIER) in the query. I want to create a variable so that the report displays the results based on the first character of 0PRODHIER.  How can this be achieved?
    Thanks,
    Rishi

    Hi Mayank
    Thanks for your response. I knew that we can do this at the Cube level but I was just wondering if there is any other way to achieve this at the BEx level.
    Thanks
    Rishi

  • Firefox keeps changing the address of some sites I use, adding 'www' when it isn't part of the URL. How do I stop this?

    I'm using Firefox 3.6.13
    I googled and found an answer I was willing to try, that required typing about:config into the location bar and changing some parameters. And guess what? It added www. to the beginning and told me it couldn't find the site.

    Ummm ... see above ... I '''did '''type about:config into the location bar - and it added www. to it. It's adding www. to '''everything '''in the location bar. It does it if I type in an address manually, if I follow a bookmark, and when I use the 'history' link.
    Thus it tried to take me to www.about:config and said it couldn't find it.

  • Using a variable as part of a url

    Hi
    Thanks for checking in!. I am trying to define one folder in
    a url as a variable
    //Here is what my code looks like before I try to use a
    variable as part of the url. And this works just fine.
    var nextImage:String = "events/1.jpg";
    this.loaderTarget_mc.loadMovie("loader.swf")
    //But when I try define the events folder as a variable I am
    having no luck.
    var gallery:String = "events";
    var nextImage:String = "(gallery)/1.jpg";
    this.loaderTarget_mc.loadMovie("loader.swf")
    I am hoping what I am doing wrong here will be obvious to
    someone who knows more than I do. Any ideas?
    Thanks again
    Scott

    Using variable inside a String Delimeter will make it as
    String. So put the variable out side the double code.
    var nextImage:String = gallery + "/1.jpg";

Maybe you are looking for