Use WLS 8.1 to HttpProxyServlet to multiple web servers

I am trying to set up an environment so my client connects to the WLS server SSL&PKI. The WLS server will then proxy to multiple other web servers so all data returned between WLS and clint is SSL.
                    -------|        |-----|-------------| apache/tomcat 8880
          Client|---------| WLS |
          -------|        |-----|-------------| apache 3443
                              Here is the problem, I have been successful getting SSL&PKI and proxying to one to work, but not both servers. Each server runs different web server functions, this is not a cluster.
          web.xml and weblogic.xml below
          If I go to https://<WLSserver>:7002/cgi-bin
          It always goes to the second server, it seems as soon as I map a <url-pattern>/</url-pattern> whichever servlet is defined last wins.
          As added note, the client will never be able to connect to the apache and apache/tomcat server directly because the ports are blocked at the router level.
          Is what I trying to do possible? Is there another way to proxy to multiple servers so the data back to the client is always SSL?
          Thanks
          --Sam
          Weblogic.xml
          <context-root>/<context-root>
          web.xml
          <web-app>
          <servlet>
          <servlet-name>ProxyServlet1</servlet-name>
          <servlet-class>weblogic.servlet.proxy.HttpProxyServlet</servlet-class>
          <init-param>
          <param-name>redirectURL</param-name>
          <param-value>
          http://targethost1:8880/
          </param-value>
          </init-param>
          </servlet>
          <servlet-mapping>
          <servlet-name>ProxyServlet1</servlet-name>
          <url-pattern>/</url-pattern>
          </servlet-mapping>
          <servlet-mapping>
          <servlet-name>ProxyServlet1</servlet-name>
          <url-pattern>*.html</url-pattern>
          </servlet-mapping>
          <servlet-mapping>
          <servlet-name>ProxyServlet1</servlet-name>
          <url-pattern>*.htm</url-pattern>
          </servlet-mapping>
          <servlet-mapping>
          <servlet-name>ProxyServlet1</servlet-name>
          <url-pattern>*.jsp</url-pattern>
          </servlet-mapping>
          <servlet>
          <servlet-name>ProxyServlet2</servlet-name>
          <servlet-class>weblogic.servlet.proxy.HttpProxyServlet</servlet-class>
          <init-param>
          <param-name>redirectURL</param-name>
          <param-value>
          http://targethost:3443/
          </param-value>
          </init-param>
          </servlet>
          <servlet-mapping>
          <servlet-name>ProxyServlet2</servlet-name>
          <url-pattern>/</url-pattern>
          </servlet-mapping>
          <servlet-mapping>
          <servlet-name>ProxyServlet2</servlet-name>
          <url-pattern>*.html</url-pattern>
          </servlet-mapping>
          <servlet-mapping>
          <servlet-name>ProxyServlet2</servlet-name>
          <url-pattern>*.htm</url-pattern>
          </servlet-mapping>
          <servlet-mapping>
          <servlet-name>ProxyServlet2</servlet-name>
          <url-pattern>*.jsp</url-pattern>
          </servlet-mapping>
          </web-app>
          Message was edited by bea_samham at Jan 14, 2005 6:02 PM

I was still investigating. One suggestion is to run multiple server instances, each with its own <conxext-root>/</context-root> in weblogic.xml. This should work because each managed server runs in its own JVM, so you can have multiple context-root's set to /
          I tried marking the case a answered but get javax exceptions, there must be something going on with the forum pages.
          Message was edited by bea_samham at Jan 26, 2005 3:37 PM

Similar Messages

  • Load Balancing multiple web servers

    Hi All:
    I need to load balance 2 different web servers using sticky connections on a LocalDirector 416.
    I need to use cookie-passive mode, which of course relies on a cookie set by the web server.
    Problem: The name of the session cookie is different on each web server (IIS) and I'm not sure that I can change it.
    Question: What do I pass to the sticky command as the name of the cookie?
    Any ideas?
    craig

    fortunately the cookie are different on the 2 servers otherwise this feature would not work.
    The value you enter after the keyword cookie-passive is a 'name' and can be whatever you want (you can also leave it blank/empty).
    The LD will learn the cookie directly from the server.
    See the documentation at :
    http://www.cisco.com/univercd/cc/td/doc/product/iaabu/localdir/ldv42/421guide/42ch05.htm#xtocid8565101
    I hope this answer your question.
    Gilles.

  • Configuring Apache httpd.conf for Multiple Web Servers

    After successfully serving a single web site from my MacMini, I'm having trouble configuring httpd.conf to add an additional site. My httpd.conf file looks something like this:
    NameVirtualHost *:80
    <VirtualHost *:80>
    ServerName www.domain1.net
    DocumentRoot "/Library/WebServer/Documents/Domain1"
    </VirtualHost>
    <VirtualHost *:80>
    ServerName www.domain2.us
    DocumentRoot "/Library/WebServer/Documents/Domain2"
    </VirtualHost>
    Whichever domain I put first on the list is the one that gets served, as though apache isn't able to match the ServerName and defaults to the first vhost.
    Both domain1.net and domain2.us are registered through no-ip.com. Verizon, my isp, blocks port 80, so I configured AirPort Extreme to map public port 81 to private port 80. Dynamic DNS and port mapping works fine serving a single site.
    Are there other lines in httpd.conf that I need to edit?
    MacMini   Mac OS X (10.3.9)  

    John--
    I handle it slightly differently on my Macs. I have this line:
    NameVirtualHost *:80Then for my virtual hosts, I have the following:
    <VirtualHost *>
    ServerName localhost
    </VirtualHost>And then for the second one:
    <VirtualHost *>
    ServerName www.host2.com
    ServerAlias host2.com
    DocumentRoot "/Library/WebServer/dir2"
    </VirtualHost>The first server is the default one you get when you put http://localhost into the browser window, or if you were to request it by IP address.
    I don't use the default /Library/WebServer/Documents folder for any of the sites on my machine. For the first web site, I use something like /Library/WebServer/dir1. So I make that change up earlier in the config file.
    In your case, you'd want to add server aliases for the first one:
    <VirtualHost *>
    ServerName domain1.net
    ServerAlias www.domain1.net localhost
    </VirtualHost>Hope this makes sense...
    charlie

  • Session control with multiple web servers in IE

    to understand my problem do the following:
    make a page with this code:
    <%
    out.println("sessionID = "+session.getId());
    %>
    Run two (2) instance of web servers (can be a tomcat) in different ports...
    open IE and access the URL: http://localhost:8080/test/mytest.jsp
    see id number...
    access http://localhost:8081/test/mytest.jsp
    see id number...
    now access http://localhost:8080/test/mytest.jsp again
    and will see that IE lost the session and has a different session id.
    if you make this test in Nestcape it will keep the same session id when you access the 8080 server again, and is what i want :)
    anybody knows a solution to this?
    in the real world, my application has a frame with a menu that runs in 8080 server port and the application that are called by this menu will run in different ports in another frame. the problems is that when a call a application in another port, with IE i lost the session from the menu that runs on port 8080. With Netscape work perfect!
    somebody can help?

    this seems to have to do with the handling of sessoin cookies. IE creates one cookie for every browser instance whereas Netscape creates one session cookie for all browser instanced. Linke this Netscape shares a session cookie with the whole application wheres as IE does not.
    Just to make it clear: none of the both handling methodes are right or wrong. In my opinionen from the point of security, the IE solution is better.
    The only workaround i see is to implement a session id your own. Store it in the session object and the session object into a session manager that can be accessed from both application.

  • Multiple Application Servers - Same class instance

    Hi,
    Due to increasing load we have to add multiple Web Servers and Application Servers (custom built) for our Web Application.
    As currently we are using 'synchronized' for adding and releasing connection in ConnectionPool and also using static in several other classes - we have to make these few classes single instance across the application servers.
    We are using iPlanet 6.0 for Win 2000. Is there any way we can direct specific classes for a single instance. Please provide me with all sorts of alternatives.
    Thanks a lot,
    Suman Biswas

    Hi,
    Yes, we have different JVMs. Different JVM means different processes,now there can be two cases,these process running on same machines
    or on different machines.If it is in different machines then undoubtly you require to go for the Distributed Technology(RMI for java).
    As we have couple of classes which are using
    'synchronized' - cann't we use centralized classes for
    these couple of classes to maintain integrity?Yes you can do it,now this centralized class should be available in common place from where your all applications can get results,and for avoiding the data corruption your require to go for synchronized(if some global variables) block,since the same instance will be serving all the requests.
    When you say RMI - my question is how the commercial products handle these kind of issues while they are in multiple servers?I have created some application using RMI but not the same one which you had specified.I had used it for different purpose.
    vicky

  • Multiple Web Applications WLS 7.0

    Hi,
    I am trying to configure multiple web applications on the same WL 7.0 server and
    am having trouble doing the following.
    I would like to be able to use the following URLS:
    Application #1:
    http://myserver/st/aems - where st/aems maps to the path X:\SimpleTrade2\AEMS\ui\source\htdocs
    Application #2:
    http://myserver/st/acms - where st/aems maps to the path X:\SimpleTrade2\ACMS\ui\source\htdocs
    Root - Default web application - This would be left empty with the idea that our
    company could sell our web applications and we would deploy them on someone elses
    WLS and we would not conflict in any way.
    The problem with the above is that when I look at the DTD and try and configure
    config.xml in the following way:
    <Application Deployed="true" Name="AEMS"
    Path="X:\SimpleTrade2\AEMS\ui\source\htdocs" TwoPhase="true">
    <WebAppComponent DeploymentOrder="2000" Name="aems"
    Targets="simpletradeserver" URI="st/aems"/>
    WLS blows up on startup because it tries to POST-Pend the URI to the path... If
    I change it to:
    <Application Deployed="true" Name="AEMS"
    Path="X:\SimpleTrade2\AEMS\ui\source" TwoPhase="true">
    <WebAppComponent DeploymentOrder="2000" Name="aems"
    Targets="simpletradeserver" URI="htdocs"/>
    This will work but then my URL is not what I want it becomes http://myserver/htdocs
    Is there anyway around this or a way to get what I want?
    Another piece of information, I am developing in Exploded directory format when
    we deploy it will be as an ear.
    Thanks in advance for any ideas!!!
    -Jerry Rodgers

    Thanks for the info Christian.
    I thought I would pass along a bit more inforation for others who might be trying
    to do something similar. In case they run across this message.
    I did determine that if you are using a .WAR file the name attribute of the xml
    node WebAppComponent will allow you to create a different context path than the
    URI. I did not test to see if it allowed you to use a name like "st/aems" I am
    sure "st.aems" would work or any name that may be different than the URI. The
    weird thinhg is that when using the EXPLODED DIRECTORY format the URI is the name
    of the folder under the path and the name property appears to be ignored no matter
    what you change it to you can only get to your web app using the URI.
    Hope this helps someone who comes after me and is looking for the same thing,
    maybe they won't spend 6 hours on it like I did ;>
    -Jerry
    "Christian Plenagl" <[email protected]> wrote:
    >
    Hi,
    this is not possible.
    The URI field contains the directory name of the WebApplication, which
    normally
    is the same name as the directory where you put the webapplication in.
    Christian Plenagl
    Developer Relations Engineer
    BEA Support
    "Jerry Rodgers" <[email protected]> wrote:
    Hi,
    I am trying to configure multiple web applications on the same WL 7.0
    server and
    am having trouble doing the following.
    I would like to be able to use the following URLS:
    Application #1:
    http://myserver/st/aems - where st/aems maps to the path X:\SimpleTrade2\AEMS\ui\source\htdocs
    Application #2:
    http://myserver/st/acms - where st/aems maps to the path X:\SimpleTrade2\ACMS\ui\source\htdocs
    Root - Default web application - This would be left empty with the idea
    that our
    company could sell our web applications and we would deploy them onsomeone
    elses
    WLS and we would not conflict in any way.
    The problem with the above is that when I look at the DTD and try and
    configure
    config.xml in the following way:
    <Application Deployed="true" Name="AEMS"
    Path="X:\SimpleTrade2\AEMS\ui\source\htdocs" TwoPhase="true">
    <WebAppComponent DeploymentOrder="2000" Name="aems"
    Targets="simpletradeserver" URI="st/aems"/>
    WLS blows up on startup because it tries to POST-Pend the URI to the
    path... If
    I change it to:
    <Application Deployed="true" Name="AEMS"
    Path="X:\SimpleTrade2\AEMS\ui\source" TwoPhase="true">
    <WebAppComponent DeploymentOrder="2000" Name="aems"
    Targets="simpletradeserver" URI="htdocs"/>
    This will work but then my URL is not what I want it becomes http://myserver/htdocs
    Is there anyway around this or a way to get what I want?
    Another piece of information, I am developing in Exploded directoryformat
    when
    we deploy it will be as an ear.
    Thanks in advance for any ideas!!!
    -Jerry Rodgers

  • Label Printing Using Address Book - How can I Print multiple labels of the same name?

    Label Printing Using Address Book - How can I Print multiple labels of the same name?

    I used to be able to print multiple copies of the same picture on one page using iphoto. There was a customise button when you went through to print and it was there somewhere. I can't see it anymore - maybe since an upgrade.
    It's gone. But as a work-around, duplicate your photo (⌘D) to create as many versions as you want copies and select all at once. Then use the "Custom" print layout and set the photo size you want.
    After printing, trash the added versions.

  • How can you use the same e-mail address for multiple ipads?

    I have two iPads.. an iPad and an ipad 2.  I registared my new ipad 2 and now my old ipad is will not let me log on and is telling me that my e-mail address is already in use.  how can you use the same e-mail address for multiple ipads?

    And by using the same Apple ID you can also share purchases.  If you have a different Apple ID for each iPhone then you can't share purchases.

  • Can I use my Time Capsule to set up multiple networks, or just one?

    Can I use my Time Capsule to set up multiple networks, or just one?  We'd like to offer the internet to clients who are at our studio, but don't want them able to access all our computers, so a second network for them would be useful.

    Two big IFs here.
    Not all versions of the Time Capsule have Guest Networking capability, so it might be a good idea to verify that first. Can you provide the model number of your Time Capsule.  it's on the bottom of the device.....starts with an "A" followed by four numbers.
    Next, assuming that the Time Capsule has Guest Network capability, the next requirement would be to verify that your modem is compatible with the Time Capsule for that feature. 
    Basically, you need a simple modem.....not a modem/router or gateway device that is often furnished by Internet Service Providers.  If you are not sure what you have, post back with the make and model number of your "modem" and we'll see if we can find some details ont he device.

  • ISE Not Identifying AD Group Attributes when using Multiple ISE Servers

    So we have multiple ISE Servers with differing personas. I was having an issue with our new ISE setup not identifying AD Group Attributes when using them in Authorization rules.
    We have 2- 3395 appliances running Admin and Monitoring/Troubleshooting Personas and 2- 3395 appliances running as Policy server personas. We are running  v1.1.1.268 with the latest two patches.
    I was unable to pull Active Directory Group Attributes in any of my Authorization rules. After Resyncing all the boxes with the Primary Administration box I was able to do this. There is no bug listings for this occurance nor do we have Smartnet to call support for other reasons. I thought this might be useful to someone who is having the same issue and is unable to figure it out with TAC
    -CC

    Absolutely. All units said in-sync after setting their personas.
    Here is our layout:
    ISE-ADM-01  Admin-Primary, Monitoring-Secondary
    ISE-ADM-02  Admin-Secondary, Monitoring-Primary
    ISE-PDP-01  Policy Only
    ISE-PDP-02  Policy Only
    I synced one at a time starting with ADM-02. After completing the other two boxes. Active Directory Attribs were pulled down when using them in the Ext Group within my Authz rules.
    -CC

  • Using ME57 to create an RFQ from multiple lines on multiple PRs

    When using ME57 to create RFQs how can I select multiple line items from multiple purchase requisitions to turn into a single RFQ. If I select multiple lines and then use 'RFQ with Vendor', it only selects one line item.  After further research it appears that you can only create only line at a time (very time consuming). 
    If you use ME41 and create with reference to PR then you can not sort or filter columns to allow for easy consolidation.
    Another forum recommended the following when using ME57 which works but it again adds extra steps to the process.
         The whole process is as follows -
         1) When you are in the 'Assign and Process Purchase Requisition' screen, select related PR and then click on 'Without Vendor' icon to flag all PRs for RFQ processing.
         2) Select these PRs again and click further on 'Assignment Overview' icon (Shift and F5). The next screen will appear - Assign and Process requisitions - Overview of Assignments screen.
         3) Select the 'PReq' column and then click further on 'Process Assignment' icon (F2). The next screen will appear where you have to maintain the 'quotation deadline' information.
         4) Then click on 'Continue' icon (enter).
    [http://www.sapfans.com/forums/viewtopic.php?f=6&t=198768]
    So is there any way to either 1) enable sorting of data in ME41 or 2) use ME57 to create one RFQ from multiple line items of multiple purchase requisitions when selecting 'RFQ with Vendor'.

    What is the JPEG specs? What are the specs of the project you're working in?

  • Using WLS as a web server

    Hi,
    we are currently using Netscape Enterprise Server 3.6 as our web
    server and WLS 5.1 as web container, both running on AIX 4.3.3.
    We want to get rid of the NES (it is buggy and unsupported) but we are
    unsure if need to replace it with another web server (e.g. Apache or
    iPlanet), or just use WLS 6.1 as both web server and web container.
    So the question is: do you have any experience regarding the
    performance of the WLS 6.1 web server compared to a standard web
    server?
    TIA
    /\/\orten Hindsholm

    The main reason that 5.1 is 25% slower than NES or Apache on serving static html
    is that NES/Apache do a lot of native I/O and caching ( their code base is C/C++).
    6.1 fixed that problem, BEA use native I/O to retrieve static html and img files,
    and caching them in memory. Benchmark data shows that they are in par with NES/Apache's
    performance. It's pretty safe for you to use 6.1 to host your static contents
    and use it as web container at the same time.
    My 2 cents.
    Jim Zhou.
    [email protected] (Morten Hindsholm) wrote:
    Hi,
    we are currently using Netscape Enterprise Server 3.6 as our web
    server and WLS 5.1 as web container, both running on AIX 4.3.3.
    We want to get rid of the NES (it is buggy and unsupported) but we are
    unsure if need to replace it with another web server (e.g. Apache or
    iPlanet), or just use WLS 6.1 as both web server and web container.
    So the question is: do you have any experience regarding the
    performance of the WLS 6.1 web server compared to a standard web
    server?
    TIA
    /\/\orten Hindsholm

  • Using OS X Install CDs/DVDs On Multiple Macs

    Using OS X Install CDs/DVDs On Multiple Macs
    The question of using system/software install CDs/DVDs on more than one machine is frequently asked.
    So, FYI:
    System software installation CDs/DVDs, that come with a particular Mac model, are hardware specific to that model, and not intended to be used on other Mac models. For instance, the CDs/DVDs that are shipped with an iMac are not to be used on an iBook or eMac.
    And the "Tiger" DVDs that are shipped with any new Mac, also are not to be used on other Mac models.
    If such an installation were possible, or somehow accomplished successfully, that action would constitute a violation of your license agreement, which limits installation to a single computer.
    The "Single User Software License Agreement" can be found here Software License Agreement.
    Similarly, any "Upgrade" CDs/DVDs for a particular Mac OS will ONLY work for that Mac & system. For example, if a new Mac that shipped with Jaguar/Panther, was purchased shortly before the release of Panther/Tiger, the user may have purchased "Upgrade" CDs/DVDs, for a lesser price than the full install set. These CDs/DVDs do not contain all of the necessary components for an independent installation of Panther or Tiger.
    The license agreement applies to single user retail versions of system software. The "Panther" or "Tiger" boxed set, for example.
    ali b

    Here are the requirements for Lion:
    http://osxdaily.com/2011/06/07/mac-os-x-10-7-lion-system-requirements/
    In order to install Lion you have to have Snow Leopard and then update to 10.6.8:
    http://store.apple.com/us/product/MC573/mac-os-x-106-snow-leopard
    Personally I suggest that you stop at Snow Leopard.  It still is the most efficient OS that Apple has devised and it still works great.  Go to the Lions only if there are feature that you really need.  There may be a price to pay in slower performance though.
    Ciao.

  • Running a Select query against multiple sql servers using SSIS script task.

    Hi Guys,
    I need to fetch data from multiple sql servers using  SSIS scirpt task inside a foreach container.
    is there anyway i can build dynamic sql connections using ssis variables inside SSIS script task in each loop
    Please guide me or refer any blogs so that i will try..
    Thanks in advance.

    Your only options is using .net code, then it will be no different than using a console app in a loop.
    using (SqlConnection connection = new SqlConnection(connectionString))
    connection.Open();
    Console.WriteLine("ServerVersion: {0}", connection.ServerVersion);
    Console.WriteLine("State: {0}", connection.State);
    and so forth for each connection string
    the connection string would come from the ForEach loop
    Arthur My Blog

  • Use single realm for multiple web applciation in sharepoint 2013 and adfs 2.0

    Use single realm for multiple web applciation in sharepoint 2013 and adfs 2.0
    Please help!!

    I dont think you can do this, because you have to name/url of the web application in realm. You have to add new realm for each web application.here is script to add another realm.
    Add-PSSnapin "Microsoft.SharePoint.PowerShell"
    $sts = Get-SPTrustedIdentityTokenIssuer | where {$_.Name -eq "ADFS2.0"}
    $uri = new-object System.Uri("http://url/")
    $sts.ProviderRealms.Add($uri, "urn:sharepoint:Name")
    $sts.Update();
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

Maybe you are looking for

  • Message contents in sxmb_moni

    Dear All, We are working on PI7.0. when we see message in sxmb_moni, it is showing only the Incoming message only but dosen't show the message after mapping. Please help us know how we will be able to see the message after mapping in sxmb_moni. with

  • Partitioning of existing tables.. based on date

    Hello Friends, I have some tables where their is a column called x_as_of_dt COLUMN with DATE as the datatype. All the tables have already got data populated. Now I want to partition the tables based on column x_as_of_dt by YYYYMM How to approach this

  • To Merge Cross Tab Header in Web-I XI R2

    Hello All, I have one cross tab report and Its header is Name field.When we run the report, suppose we get 15 columns so 15 times the report header displays the "Name" in cross tab. I want to display the 'Name ' field only once in middle of cross tab

  • My TypeKit kits have disappeared

    Having linked my Adobe Creative Cloud ID with TypeKit - as Adobe suggested - now when I log in to TypeKit I am missing all my previously set up Kits. They still work - visiting any website using these kits shows the fonts perfectly - but I cannot vie

  • I ve got this page (Internal Server Error ) when try to open htmldb 2.0

    i install htmldb 2.0 sucssefully but when try to open with this path http://hostname:7777/pls/htmldb/htmldb it gives me this page Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your reque