Forwarding based on URL

Hi,
I'm trying to configure a CSS to act the following way:
- initial URL https://test.toto.com needs to reach http://1.1.1.1:8083/test
- initial URL https://prod.toto.com needs to reach http://1.1.1.1:8083/prod
Also can those two initial URL be mapped to the same VIP?
Thank you for your help,
Marc.

do you have an SSL module ?
This will be require for such requirement.
Regarding the vips, you can have a single one for both hostname, but be aware that certificates contain the name of the site and client browsers do check that the certificate received from a site does match the name of the site typed in the url.
So, you will have to request a special certificate for *.toto.com from your certificate authority.
After that, this is quite easy to configure the CSS.
Gilles.

Similar Messages

  • 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.

  • 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

  • Forwarding to a url

    I want to be able to create a custom URL for my application and forward it to another URL. For example: The link to access my application will be localhost/phonebook. Anytime that link is clicked, I would like it to go to this URL: file://someServer/developers/anicadu/phonebook.txt. Is it possible to achieve this? If so, could you please tell me how?

    What version of the server are you using? In Web Server 6.1, you can configure URL forwading from the Content Mgmt tab of the Class Manager UI. To do this, login to the administration server, click Manage -> Virtual Server Class -> Manage -> Content Mgmt -> URL Forwading. It sounds like you want to forward from the URL prefix /phonebook to the fixed URL file://someServer/developers/anicadu/phonebook.txt. Click OK to add the forward, then click Apply to apply your changes.
    In any version, you could manually add the following directive to the obj.conf configuration file:NameTrans fn="redirect" from="/phonebook" url="file://someServer/developers/anicadu/phonebook.txt"

  • Decision based on URL Parameter

    Hi,
    I want to make a decision in the GP based on URL Parameter.
    I have an application with url that has the ID in the url address and takes out the data from the DB based on the ID if there is no ID then this is a new Form.
    If this is a new Form (no ID in URL) I need to call Application A and then B and then send mail and so on...
    If this is an saved Form (with ID in the URL) I need to call Application B and then send mail and so on...
    I tried to do it with Decision (predefined value) but no luck.
    Any suggestion?
    Regards,
    Silvy

    Try implementing that logic into a PhaseListener and see which phase suits you best.

  • ACE 4710 Redirect to Different Server Farm based on URL

    I have a weblogic 11 serverfarm where i want to redirect to a different serverfarm based on the URL. I am able to do it and it appears to be working however I am having issues with the cookies. I seem to be getting logged out of our App when switching between the serverfarms. Is there any way to fix this issue? My configuration is below.
    Thanks!
    -Andy
    Generating configuration....
    crypto chaingroup WWW-PROD-CHAINGROUP
      cert AddTrustExternalCARoot.crt
      cert COMODOHigh-AssuranceSecureServerCA.crt
    access-list allow line 8 extended permit ip any any 
    probe http HTTP_PROBE
      port 7001
      interval 10
      passdetect interval 5
      request method get url /login.jsp
      expect status 200 299
      connection term forced
    probe icmp PROBE_SERVICE_ICMP
      interval 5
      passdetect interval 5
      receive 5
    probe tcp TCP7001_PROBE
      port 7005
      interval 5
      passdetect interval 5
      receive 3
      connection term forced
      open 2
    rserver redirect REDIRECT-TO-HTTPS
      webhost-redirection https://%h%p 301
      inservice
    rserver host WLS11Host1
      ip address 192.168.211.250
      inservice
    rserver host WLS11Host2
      ip address 192.168.211.14
      inservice
    serverfarm redirect REDIRECT-SERVERFARM                                                                                                                                                                                                                                        
      rserver REDIRECT-TO-HTTPS                                                                                                                                                                                                                                                    
        inservice                                                                                                                                                                                                                                                                  
    serverfarm host SPEND-FARM                                                                                                                                                                                                                                                     
      probe HTTP_PROBE                                                                                                                                                                                                                                                             
      rserver WLS11Host1 7001                                                                                                                                                                                                                                                      
        inservice                                                                                                                                                                                                                                                                  
    serverfarm host WLS11FARM                                                                                                                                                                                                                                                      
      probe HTTP_PROBE                                                                                                                                                                                                                                                             
      rserver WLS11Host2 7001                                                                                                                                                                                                                                                      
        inservice                                                                                                                                                                                                                                                                  
    parameter-map type http HTTP-PARM                                                                                                                                                                                                                                              
      persistence-rebalance                                                                                                                                                                                                                                                        
      set secondary-cookie-start none                                                                                                                                                                                                                                              
    parameter-map type http PARSE                                                                                                                                                                                                                                                  
      persistence-rebalance                                                                                                                                                                                                                                                        
      set header-maxparse-length 8192                                                                                                                                                                                                                                              
      length-exceed continue                                                                                                                                                                                                                                                       
    parameter-map type ssl SSL_MAP                                                                                                                                                                                                                                                 
      cipher RSA_WITH_RC4_128_MD5                                                                                                                                                                                                                                                  
      cipher RSA_WITH_RC4_128_SHA                                                                                                                                                                                                                                                  
      cipher RSA_WITH_3DES_EDE_CBC_SHA                                                                                                                                                                                                                                             
      cipher RSA_WITH_AES_128_CBC_SHA                                                                                                                                                                                                                                              
      cipher RSA_WITH_AES_256_CBC_SHA                                                                                                                                                                                                                                              
    sticky http-cookie ACE_COOKIE-7001 7001_STICKY
      cookie insert browser-expire
      serverfarm WLS11FARM
      replicate sticky
    sticky http-cookie ACE-COOKIE-SPEND SPEND_STICKY
      cookie insert browser-expire
      serverfarm SPEND-FARM
      replicate sticky
    ssl-proxy service WWW-PROD-SSLPROXY
      key client_ssl.pem
      cert pastar.crt
      chaingroup WWW-PROD-CHAINGROUP
      ssl advanced-options SSL_MAP
    class-map type http loadbalance match-any HTTP-MARKETING
      2 match http url /index.html
    class-map type http loadbalance match-any HTTPS-SPEND
      2 match http url /spend/.*
    class-map type http loadbalance match-any L5
      2 match http url /.*
    class-map match-all WLS-7001-CLASS
      2 match virtual-address 192.168.215.28 tcp eq www
    class-map match-all WLS11-HTTPS-CLASS
      2 match virtual-address 192.168.215.28 tcp eq https
    policy-map type loadbalance first-match HTTPS
      class HTTPS-SPEND
        sticky-serverfarm SPEND_STICKY
        insert-http x-forward header-value "%is"
      class L5
        sticky-serverfarm 7001_STICKY
        insert-http x-forward header-value "%is"
    policy-map type loadbalance first-match WLS11-7001-Policy
      class HTTP-MARKETING
        sticky-serverfarm 7001_STICKY
        insert-http x-forward header-value "%is"
      class HTTPS-SPEND
        serverfarm REDIRECT-SERVERFARM
      class L5
        serverfarm REDIRECT-SERVERFARM
    policy-map multi-match WLS11-SLB
      class WLS-7001-CLASS
        loadbalance vip inservice
        loadbalance policy WLS11-7001-Policy
        loadbalance vip icmp-reply active
        nat dynamic 1 vlan 1000
        appl-parameter http advanced-options HTTP-PARM
      class WLS11-HTTPS-CLASS
        loadbalance vip inservice
        loadbalance policy HTTPS
        loadbalance vip icmp-reply active
        nat dynamic 1 vlan 1000
        appl-parameter http advanced-options PARSE
        ssl-proxy server WWW-PROD-SSLPROXY
    interface vlan 1000
      ip address 192.168.215.27 255.255.255.0
      access-group input allow
      nat-pool 1 192.168.215.28 192.168.215.28 netmask 255.255.255.255 pat
      service-policy input WLS11-SLB
      no shutdown
    ip route 0.0.0.0 0.0.0.0 192.168.215.1
    snmp-server community poweradvocaterw group Network-Monitor

    Hi,
    So when you come with " http url /index.html", you go to "sticky-serverfarm 7001_STICKY" and ACE must be inserting sticky "ACE_COOKIE-7001". Now when you get redirected because you match "HTTPS-Spend", ACE will loadbalance the request which will now come on HTTPS and insert sticky " ACE-COOKIE-SPEND".  That's why i guess you see two sticky entries. Now i guess ACE will keep the connection to servers in  "sticky-serverfarm SPEND_STICKY" or you see that ACE is not doing the same or you expected the ACE to send the requested to "sticky-serverfarm 7001_STICKY" even though it matches the HTTPS-Spend class-map condition?
    Regards,
    Kanwal

  • 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.

  • Lenovo personal cloud forwards to wrong URL where there is no access. How to change this?

    Hello,
    Everything works fine when you invite people to your personal cloud.. You're given the Username and Password and the group in the invitation email.
    To access this Personal Cloud from a Web browser, use the following URL:
    https://xxxxxxxx.mylenovoemc.com
    Here's the information you need to join:
           Cloud Name:   xxxxxxx
           Username:  test1
           Password:  xxxxxxxx
    This part is fine.
    Now when we go to the login page and it asks the username and password and press LOGIN It forwards to management page. Here the account has no access, cause we dont want the new account to have any management access. There is also no place you can go from there. No links to share folder or anything so basicly the account is stuck there.
    https://xxxxxxxx.mylenovoemc.com/manage/manage.html?cat=all
    And the real url should be:
    https://xxxxxxx.mylenovoemc.com/manage/foldercontent.html?folder=test1
    This url works fine for the account for image views etc, but the new account has no way of knowing of this account How can we change the management url to the working url when customer clicks LOGIN ?
    Best regards,
    Miikka

    Hello miikkakolari
    when remote users access your cloud via the personal cloud address, the homepage that you setup under Home Page Settings in the web interface will load.  The default should be the .../manage/index.html
    This will allow remote users to access the default public landing page where they can login to access secured content or if admin level login and manage the device.
    Usually when the personal cloud address goes to the admin console login, it means you either have Home Page turned off or you have set the home page to an address that requires admin access.
    LenovoEMC Contact Information is region specific. Please select the correct link then access the Contact Us at the top right:
    US and Canada: https://lenovo-na-en.custhelp.com/
    Latin America and Mexico: https://lenovo-la-es.custhelp.com/
    EU: https://lenovo-eu-en.custhelp.com/
    India/Asia Pacific: https://lenovo-ap-en.custhelp.com/
    http://support.lenovoemc.com/

  • Help:Domain name forwarding to .mac URL

    Experts - newbie here - used iweb and built my site. Forwarded my domain name to the .mac URL and everytime I try to access the domain name I get a .mac screen that says my .mac iweb site does not exist. Seemed all rather simple with point and click so now what? Thanks

    everytime I try to access the domain name I get a
    .mac screen that says my .mac iweb site does not
    exist.
    Most likely you made an error in the url. If you would provide the two urls someone could probably help you fix it, otherwise it's pretty impossible.

  • 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.

  • Redirect http requests to different servers based on URL

    You can use a reverse proxy to do this, but if you have a single IIS box in a DMZ you can also use IIS ARR (Application Routing Request) to do this for you.
    https://knowledge.safe.com/articles/How_To/Using-IIS-and-ARR-as-a-reverse-proxy
    You may find better articles if you look, but it is easy enough to do.

    Hi,
    We have an internet connection (with a single IP address) where I need to share access to different internal servers based on the requested URL.
    I.e.:
    http://url1.domain.com -> webserver1
    http://url2.domain.com -> webserver2
    etc.
    It's http traffic only (no https).
    How do I accomplish this? I assume some kind of proxy server-thing that all requests go to? It should be on the Windows platform as we don't want to introduce a Linux "black-box" that noone knows anything about in a production environment.
    Thanks for any ideas and/or suggestions :) 
    This topic first appeared in the Spiceworks Community

  • 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.

  • Insert Text file based on URL Parameter

    Hello! I have been able to get data to load using PHP into my
    document. BUT - that is only data that is IN the URL. So, for
    example, the URL might be ...index.php?profile=123456789
    In that case I can make the customer ID appear in all the
    other URLs on the page.
    i.e. : <a href="page2.php?profile=<?php echo
    ("$profile"); ?>">Click Here</a>
    Today, I would like a section of code (probably in a text
    file) to load in the page based on a parameter in the URL.
    Something like a URL ...index.php?destination=Australia
    And then in the body would something like "load australia.txt
    file here".
    I know this is probably bigger than I am making it sound. But
    I don't know how to load a chunk of code inside another chunk of
    code.
    Any starting points would be much appreciated. Are there any
    built-in Dreamweaver CS3 features that do this?
    Jon

    The purpose is to enter an earnest money dollar amount (Real Estate Short Sale contracts), and based on the amount, a corresponding file with a copy of a check with the proper amount will be inserted into the file at page 16.  A button would be fine , but it needs to be on the earnest money deposit line (the look of the form may not be altered).  The earnest money amounts are $1,500, $2,000, $2,500, $3,000, $3,500, $4,000, $4,500 and $5,000.

  • Launch services query based on URL protocol

    Heyaz. Technote 2017 describes a means of using LSGetApplicationForInfo() to query Launch Services to see what application is available handling a specific file extension (e.g., .html).. I am curious if the same call can be used to query based instead on URL protocol (e.g., afp:, https:, etc.). Also, am curious if the same API is available in the iPhone beta 8 SDK.
    cheers,
    Scott

    http://developer.apple.com/documentation/Carbon/Conceptual/LaunchServicesConcept s/LSCConcepts/chapter2_section_8.html#//apple_ref/doc/uid/TP30000999-CH202-DontLinkElementID11
    No clue if LaunchServices is available on the iPhone.

  • Region based on URL and https

    I have a region based on a URL, but it does not work with https! It looks like a limitation of SYS.UTL_HTTP or am I missing something.
    I can get around it by using an iframe, so what is the benefit of SYS.UTL_HTTP?
    Cheers Simon

    Thanks John, I am just reading the documentation on Oracle Wallet Manager now. I'll get our DBA to set one up for me.
    Is UTL_HTTP a better solution for embedding a web page than iframes?
    Simon

Maybe you are looking for