Reverse proxy to applications on a server by just domain names possible?

Hi All
I am looking for a solution to set up a single server, that hosts four J2EE web applications running on a Glassfish application server with just only one IP address.
When a user wants to use an application, he/she can just type URL without specifing port and path, and the corresponding web application will be displayed accordingly as shown below
http://sub1.domain1.com -- > webapp1 at port 9100
https://sub2.domain1.com -- > webapp2 at port 9200
http://sub1.domain2.com -- > webapp3 at port 9300
https://sub2.domain2.com -- > webapp4 at port 9400
I am wandering whether I could use reverse proxy of Sun Java System Web Server 7 to route the traffic from the domain names to their own application on Glassfish as shown above? I tried by creating two HTTP listeners to listen at port 80, and 443 respectively, but I could not access different applications based on domain names without specifying specifix path or port.
Is there any recommended resources or example of the mapping, or any other suggested solution?

Thank you for your reply nsegura. I created 4 different virtual servers as you suggested and it worked :)
However, I have a problem in reverse proxy base on path.
The scenario is below
I have an J2EE application that needs to be deployed in three different environment (production, training, testing). It
is the same application for three environments, so I want them to have the same context-root. I want to use Sun Web Server 7.0 to reverse proxy to the application in each environment based on path, not URL redirect. Example of URL are shown below
https://sub.domain3.com/app -- > http://localhost:9500 (with context-root /app)
https://sub.domain3.com/training/app -- > http://localhost:9600 (with context-root /app)
https://sub.domain3.com/testing/app -- > http://localhost:9700 (with context-root /app)
So far, it works if I set context-root of the application in each environment differently
https://sub.domain3.com/app -- > http://localhost:9500 (with context-root /app)
https://sub.domain3.com/training/app -- > http://localhost:9600 (with context-root /training/app)
https://sub.domain3.com/testing/app -- > http://localhost:9700 (with context-root /testing/app)
I am wandering whether there is a solution with Sun Web Server 7 that I can use to achieve reverse proxy of the same application in different environments without having to modifying context-root for each environment and use URL redirect?
I was thinking about using rewriting path with reverse proxy, but I did not see this function under reverse proxy tab.
Any ideas?

Similar Messages

  • Lync 2013 FE server certificate - different domain name

    Hi,
    I am implementing a small Lync infrastructure with the following components in a Resource Forest - Account Forest type implementation with a bi-directional Trust between the two forests:
      1 x Lync 2013 FE Standard,   1 x Mediation server  and  1 x Office Web App server
    Both AD forests have their PKI CAs, the certificate on the FE server is signed by the CA from the Account domain. All servers and workstations have both Root certificates implemented.
    User’s SIP domain name (account forest) is different from the FE server (resource forest) domain name.
    Question: When internal users sign-in to Lync they get a warning prompt as follows:
    “Lync cannot verify that the server is trusted for your sign-in address. Connect anyway?”
    Users can select to connect and everything functions correctly, however, I would like to get rid of the warning message at the beginning.
    Any idea what may be wrong, is something missing on the certificate ?
    Thanks for your help,
    Luca

    You can try to edit the internal web services FQDN and ensure your other populated DNS records point to a FQDN that matches the sip domain, or use the TrustModelData workaround here:http://support.microsoft.com/kb/2833618
    Here are a couple extra articles that dive in to what's happening: http://terenceluk.blogspot.com/2013/04/signing-into-lync-2013-client-presents.html?m=1
    http://blogs.technet.com/b/jenstr/archive/2011/02/10/lync-cannot-verify-that-the-server-is-trusted-for-your-sign-in-address.aspx
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question please click "Mark As Answer".
    SWC Unified Communications
    This forum post is based upon my personal experience and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Iview capable of performing reverse proxy for application integration.

    Is there a iview in EP capable of reverse proxying a web application. We are attempting to setup
    our production landscape. We can  of course use apache to reverse proxy applications hidden behind our dmz by punching a bunch of holes through our firewall. This is not something we wish wish to do as it totally circumvents the safety imposed by our firewalls and dmz. Not having this capability causes all sorts of difficulties with application integration, cross domain scripting issues as well as administrative burden by having to maintain, secure and expose these internally hosted applications.
    If this functionality does not exist in out of the box EP, does anyone know a third
    party that offers this? 
    Thanks
    Cliff Baeseman

    Cliff,
    I am not sure I understood your question correctly.
    EP is an application running on NetWeaver Application Server. This AS has a component called as Web dispatcher which works like a reverse proxy but isn't meant to proxy applications running on a different server other than NetWeaver AS.
    Where is your web application deployed?
    More info needed.
    Regards,
    Kiran

  • Help! Azure VM Web Server and Custom Domain Names

    I am going to be pretty basic here, so I apologize at the start ;)....We are attempting to setup a web server for our customer applications in Azure. We need to setup the website with multiple subdomains i.e. ourcompany.com is the main site but we will have
    customer1.outcompany.com, customer2.ourcompany.com, etc.... 
    I have a domain name registered with GoDaddy. I have a virtual machine up and running. I have a test website up and running and can access it externally ( the net ) so I do have endpoints figured out at minimum. 
    Example. the current virtual server is ourcompany01.cloudapp.net . Our registered domain name is ourcompany.com.
    Using our domain registrar,I am able to point ourcompany.com to ourcompany01.cloudapp.net.
    The problem is that I want our customers to see ourcompany.com not ourcompany01.cloudapp.net in the browser. 
    How do I make that happen and also allow for the subddomains?
    Any help would be greatly apprciated as I am under the proverbial gun to make this happen!!!!

    Hello ShapopoJoe
    You are right about making changes in your DNS Registrar. That is the last step that is suggested in the article:
    http://azure.microsoft.com/en-us/documentation/articles/cloud-services-custom-domain-name/
    And about createing the sub domains, you will need to use the IP address. Since you would be creating more than one subdomains for your 'www.ourcompany.com', you will need to map them to Reserve IP address.
    You can refer to this link for creating more Reserve IP address:
    http://azure.microsoft.com/blog/2014/05/14/reserved-ip-addresses/
    Thanks.
    Syed Irfan Hussain

  • Unable to access the server with its domain name.

                       Hi ,
    I have configured the site VPN between to cisco ASA and everything is working fine,but if i access the server in url with ip address http://10.XX.XX.XX:123 i am able to connect the server but if i m trying with server name i.e DNS name it doesnt work for eg : http://abcdef:123  .
    what could be the issue kindly let me know

    The issue is likely dns.  Check the dns settings on the device you're trying to access the server's url with.  Can you succerssfully do an nslookup on the server's domain name?  You'll need the machine to have at least one dns server defined in its dns settings that can resolve the web server's domain name to an ip address.  Hope that points you in the right direction.

  • How to fix wiki server if my domain name is reallocated to a new static IP?

    Our wiki server in Xserve Intel was running smooth in 10.5.7 with a static IP in an intranet environment.
    Until Our office is reallocated and the server is migrated to a MacMini G4.
    We cloned the Mini server by Time Machine.
    We changed a new domain name and a new static IP.
    Problem:
    1 Some of wiki pages points to new domain name and some don't.
    2 All wiki jpg points to old domain name but the blog jpg is correct.
    3 Group Calender can't connect to the iCal server
    Please tell me the correct procedure to amend the parameter.
    (PS I am a newbie in Server Mx and has no knowledge in UNIX/Terminal)

    Snow Leopard did the same if you used the GUI. I responded to you in your other thread. You can also simply use a different Apache. Use Macports to install your own apache, which can be managed via command line or webmin. Thus, the apple one deals with Apple stuff, and, yours deals with everything else.

  • Add-ons not working after server IP address/domain name change.

    Hello everyone,
    We have just changed the IP address of our SAP Business One server and moved it into a new domain.
    Although SAP Business One is working as expected, the add-ins created by a third party do not work. Having very little knowledge of SAP I do not understand where the problem could be.
    The third party were on-site today and have reinstalled the add-ons but they still do not work.
    There is an error message when starting the client that states: Module <Compatability Licensed for Add-ons> Expired on <20080115> but the third party have stated that this isn't a license issue.
    Can anyone provide any assistance/advice on what the problem may be?
    The possibilities for the problem at the moment are:
    - Invalid license key for add-ons (but why would changing the IP address/domain name cause this issue?)
    - The add-on is coded with the original IP address of the server.
    - There is a permissions problem that has been missed (as users are in a new domain).
    Any advice/suggestions are welcome.
    Many thanks,
    John

    >
    John Galley wrote:
    >
    > The possibilities for the problem at the moment are:
    >
    > - Invalid license key for add-ons (but why would changing the IP address/domain name cause this issue?)
    > - The add-on is coded with the original IP address of the server.
    > - There is a permissions problem that has been missed (as users are in a new domain).
    I am afraid that the possible cause is the addon is coded with the IP address in their connection method. It could be possible that it is a hardcoded addon.
    you must ask the addon developer to change it and do not use the IP address anymore in the addon.
    Rgds,

  • Add the Hosting Server IP in Domain Name Server of Microsoft

    Hi,
    I have purchased a domain (techwhiz.info) and web hosting from
    www.net4.in but the email is taken from Microsoft exchange for the same domain so the Domain Name Server is with Microsoft. Now I want to host the site for the same domain and as
    www.net4.in hosting provider told to do a entry of Hosting Server IP in DNS then only the website will show the contents. As I don't know how to do this entry so please tell me the steps to do that.
    If required anything more please let me know.
    Thanks in Advance.
    Pratik Purohit

    I'm having a little trouble with your english, but I think you're trying to do 3 things:
    Host email on an Exchange server
    host a website with net4.in
    setup DNS so that these things work together
    It also sounds like Microsoft is hosting your DNS?  If so, you'd simply create an MX DNS record to point to your Exchange 2010 server, and another DNS record for www.techwiz.info.
    You may wish to call the hosting provider(s) of these services for more specific guidance.  Your question is pretty broad.
    Mike Crowley | MVP
    My Blog --
    Planet Technologies

  • Server host and domain name have changed, which files do I edit?

    I just changed my Linux box server name and host name. I am going to edit the:
    tnsnames.ora
    sqlnet.ora
    listener.ora
    files to reflect the new host and domain name, are these the only files I need to edit?
    Thanks!

    OK here is my output when I try 2 different tnsping commands on my remote Linux box from my local PC:
    1.)
    C:\Documents and Settings\Rick>tnsping db.host.mtdomain.com
    TNS Ping Utility for 32-bit Windows: Version 9.2.0.1.0 - Production on 13-NOV-2005 07:38:55
    Copyright (c) 1997 Oracle Corporation. All rights reserved.
    Used parameter files:
    C:\oracle\ora92\network\admin\sqlnet.ora
    TNS-03505: Failed to resolve name
    2.)
    C:\Documents and Settings\Rick>tnsping mydomain.com
    TNS Ping Utility for 32-bit Windows: Version 9.2.0.1.0 - Production on 13-NOV-2005 07:36:07
    Copyright (c) 1997 Oracle Corporation. All rights reserved.
    Used parameter files:
    C:\oracle\ora92\network\admin\sqlnet.ora
    Used HOSTNAME adapter to resolve the alias
    Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SID=*)(SERVICE_NAME=mydomain.com))(ADDRESS=(PROTOCOL=TCP)(HOST=mydomain.com)(PORT=1521)))
    OK (250 msec)
    Here are my sqlnet.ora, listener.ora, and tnsnames.ora
    # SQLNET.ORA Network Configuration File: /home/oracle/Oracle9i/product/9.2.0/network/admin/sqlnet.ora
    # Generated by Oracle configuration tools.
    NAMES.DEFAULT_DOMAIN = host.mydomain.com
    NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)
    # LISTENER.ORA Network Configuration File: /home/oracle/Oracle9i/product/9.2.0/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = host.mydomain.com)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /home/oracle/Oracle9i/product/9.2.0)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = db9i)
    (ORACLE_HOME = /home/oracle/Oracle9i/product/9.2.0)
    (SID_NAME = db9i)
    # TNSNAMES.ORA Network Configuration File: /home/oracle/Oracle9i/product/9.2.0/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    DB.host.mydomain.com =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = host.mydomain.com)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = db)
    EXTPROC_CONNECTION_DATA.host.mydomain.com =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    INST1_HTTP.host.mydomain.com =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = SHARED)
    (SERVICE_NAME = MODOSE)
    (PRESENTATION = http://HRService)
    )

  • Need help on Reverse proxy set up

    Hi,
    In our system land scape, we have ISA 2004 sever, SRM, cProject suite 3.10 and LAC.
    Can any one explain me step by step procedure to set up a reverse proxy.
    We dont want to expose internal domain names and host names to internet users.
    We are able to access SRM application from external network with out any problem ( internal domain name is not displaying on title bar of IE explorer)  by activating the link translator. On SRM application when we click on collabration bid link or Live acution link for access collabration application or live auction application which resides other than SRM server. These application window (IE explorer) exposing internal hostname and domain name on title bar of Internet explorer.
    If some one can help me to resolve this problem, it would be a great help for us.
    Thanks and regards
    Seshu

    Hi Seshu,
    this is the <a href="http://rfc.net/rfc2616.html">HTTP 1.1 specification</a>.
    In section 5.2, it reads: 5.2 The Resource Identified by a Request
       The exact resource identified by an Internet request is determined by
       examining both the Request-URI and the Host header field.
    which means, that if the proxy asks for a different host, it actually asks for a different resource.
    In addition Section 14.23 reads as follows:
    14.23 Host
       The Host request-header field specifies the Internet host and port
       number of the resource being requested, as obtained from the original
       URI given by the user or referring resource (generally an HTTP URL,
       as described in section 3.2.2). <b>The Host field value MUST represent
       the naming authority of the origin server or gateway given by the
       original URL. This allows the origin server or gateway to
       differentiate between internally-ambiguous URLs, such as the root "/"
       URL of a server for multiple host names on a single IP address.</b>
           Host = "Host" ":" host [ ":" port ] ; Section 3.2.2
      Kind regards,
    Patrick

  • Sun One Application Server 7 SSL Reverse Proxy Setup?

    Hi,
    I've made a similiar post on the Web Server forum,
    http://forum.sun.com/jive/thread.jspa?threadID=95666&tstart=0
    I've noticed there's a reverse proxy plug in setup for Web Server,
    as well as a AddOn package for Application Server.
    I've so far successfully installed the reverse proxy plugin for
    the Web Server and it manage to passthrough the jsp contents
    to the Application Server.
    There's a file in our application server, Step2Cert.jsp in the
    appserver that requires to be viewed/accessed in https mode
    and I'm guessing the Web Server to Application Server communication
    should be in https?
    Anywhere I can find references on how this can be done?
    My two references:
    Web Server Reverse Proxy Plug-in
    http://docs.sun.com/source/819-0902-05/rpp61.html
    Web Server and Application Server setup for passthrough
    http://docs.sun.com/source/819-2783/agplugin.html
    I've not installed the AddOn package for the Appserver yet. But
    I figured I should, right? I'm rather confused about the two
    package.
    Thanks,
    Mac.

    Hi,
    I've made a similiar post on the Web Server forum,
    http://forum.sun.com/jive/thread.jspa?threadID=95666&tstart=0
    I've noticed there's a reverse proxy plug in setup for Web Server,
    as well as a AddOn package for Application Server.
    I've so far successfully installed the reverse proxy plugin for
    the Web Server and it manage to passthrough the jsp contents
    to the Application Server.
    There's a file in our application server, Step2Cert.jsp in the
    appserver that requires to be viewed/accessed in https mode
    and I'm guessing the Web Server to Application Server communication
    should be in https?
    Anywhere I can find references on how this can be done?
    My two references:
    Web Server Reverse Proxy Plug-in
    http://docs.sun.com/source/819-0902-05/rpp61.html
    Web Server and Application Server setup for passthrough
    http://docs.sun.com/source/819-2783/agplugin.html
    I've not installed the AddOn package for the Appserver yet. But
    I figured I should, right? I'm rather confused about the two
    package.
    Thanks,
    Mac.

  • Sun Web server 6.1 SP9 Reverse proxy - Changing Web Server Context

    I am trying to configure a Reverse Proxy such that it can change the context of the requested URL.
    My SOWS reverse proxy plug-in is running on server server1.sample.com and the destination server is running on server2.sample.com. The use case, the incoming URL is [|http://server1.sample.com/dummy1/]...... and I need to map this to {color:#0000ff}http://server2.sample.com/*dummy2*/.....;{color} It looks like the reverse proxy only maps to a server level but disregards the context. The reason I say that, in the server 2 logs I see - .... trying to GET /dummy1....; I needed the call to look for dummy2 context. Can this be done?

    well, web server uri processing does not understand web application level context (in terms of java web applications). however, if you would like to map all uri's ending with /dummy1 to go to /dummy2, then you can easily do this with web server 7 regular express processing
    http://blogs.sun.com/elving/entry/mass_virtual_hosting_in_7
    http://docs.sun.com/app/docs/doc/820-6599/gdaer?a=view
    besides web server 7 includes a very tightly integrated reverse proxy unlike 6.1 where you need reverse proxy as a separate plugin. so, you might want to check out if ws7 can serve your needs
    - sriram

  • Sun Web server 7  - Reverse proxy to different

    Hi All,
    I have following scenario:
    I have deploy my application into 2 dedicated weblogic servers, http://host1:7001/myapp and http://host2:7001/myapp. How can I configure the reverse proxy so whenever user enter the URL, webserver will forward different app server like below;
    #1 - http://abc.com >> web server will forward to http://host1:7001/myapp
    #2 - http://abc.com/controller>> web server will forward to http://host2:7001/myapp
    I follow tutorial from this link >> http://blogs.sun.com/amit/entry/setting_up_a_reverse_proxy
    For requirement #1 it work perfectly since i put URI = /myapp and Server URL = http://host1:7001.
    But for #2, it doesnt work since I put the URI=/controller.
    We wanted to be like http://abc.com/controller, so it will forward to second app server which difference application.
    Is it possible? or any other to do like that?
    Thanks!

    Hi Sriram,
    I'm having similar problem with atehac, the only difference is that the web server
    #1 http://domain.com/web1 >> forwarded to http://local-pc1.com:8080/
    #2 http://domain.com/web2 >> forwarded to http://local-pc2.com:8080/
    This is the setting that I've made in <vs>obj.conf :
    NameTrans fn="map" from="/web1" name="reverse-proxy-/web1" to="http:/"
    NameTrans fn="map" from="/" name="reverse-proxy-/web1" to="http:/"
    NameTrans fn="map" from="/web2" name="reverse-proxy-/web2" to="http:/"
    NameTrans fn="map" from="/" name="reverse-proxy-/web2" to="http:/"
    <Object name="reverse-proxy-/web1">
    Route fn="set-origin-server" server="http://local-pc1.com:8080"
    </Object>
    <Object name="reverse-proxy-/web2">
    Route fn="set-origin-server" server="http://local-pc2.com:8080"
    </Object>
    But the problem is local-pc2 won't be able to be accessed, while for local-pc1 will be mapped, but it omit /web1
    So it will be like http://domain.com/web1 at the beginning, but after I press enter it became like http://domain.com
    What I wish is something like http://domain.com/web1 all the way.
    Do you have any idea Sriram?
    Regards,
    Berry

  • Reverse Proxy FTP server

    Now that TMG is end of life, I am setting up a new Web Application Proxy server to handle all of our reverse proxy duties. This has been fine except that it doesn't seem to be able to publish FTP. So I ask the Microsoft community, how am I supposed to
    reverse proxy an FTP server that's using FTPs? IIS ARR is not the solution. Thanks.

    Hi,
    Sorry to say that I only found that TMG/ISA or the IIS with ARR can be used as a reverse proxy for applications. Maybe some third-party reverse proxy server can
    achieve that.
    Best regards,
    Susie

  • Reverse Proxy with Sun Web Server 7 update 4

    Hi All,
    I've just migrating to Sun Java System Web Server 7.0U4 B12/02/2008 from Sun Java System Web Server 7.0-Technology-Preview-3 B09/13/2006. I've have the two web servers running side by side on separate machines. Both have a VS configured as a reverse proxy pointing to the same apache tomcat web server.
    The Tech Preview 3 server works fine and has been doing since it was installed. However the Update 4 server doesn't. I can access the tomcat app via the U4 server in a browser, but not with the app on my mobile (sync ML). Snooping the traffic show me that the U4 server is sending a different response that the Tech Preview server. I'm thinking it may have to do with Transfer Encoding: chunked. I've looked around the web to see if I can turn this off in the U4 server, as I seem to recall having to do so at some point in my life, though I can't remember when and with what.
    Does anybody have any clues they can throw at me?? Or anybody know what has change in the reverse proxy part of the web server from Tech Preview 3 to U4??
    Both VS reverse proxies are congfigured exactly the same.
    Thanks,
    Stuart.

    well, technology preview is what the name says .. i am surprised that u decided to stick with a technology preview release all these days.. in any case, there should not have any feature change between technology preview build and U4. but , there has been lot of bug fixes - so, unless we know the exact problem - we can't easily narrow down the change between tp3 build with U4 and find out how it is affecting u.
    here is a related article on how to use chunked encoding within web server 7
    http://developers.sun.com/webtier/reference/techart/chunked_req.html
    now, to help you more appropriately, you need to provide us with errors (probably with log level set to finest within server.xml) and let us know with the error reported by web server when it is unable to send those requests to back end tomcat
    you can set log level to finest by running the following command
    /sun/webserver7/bin/wadm set-config-prop -user=admin --config=<hostname> log-level=finest
    /sun/webserver7/bin/wadm deploy-config --user=admin <hostname>
    http://docs.sun.com/app/docs/doc/820-4842/set-config-prop-1?a=view
    (once you have identified the problem, you might want to set log level to info as setting to finest will cause your logs to grow humongous and also hurt performance
    thanks
    sriram

Maybe you are looking for

  • Index Usage

    Hi All, Using Oracle 11.2.0.3 on a TEST server create index emp_job_sal_idx on emp(job,sal) ; SQL> create or replace view test1 as select d.deptno, d.dname, e.empno, e.job, e.sal from dept d, emp e where d.deptno=e.deptno and (e.job='CLERK' and e.sal

  • How do I find my original photo files in Iphoto?

    Well...Thanks Apple for censoring and deleting my previous discussion which DID contain useful and constructive information for many people who are trying to track down their photos in Iphoto.  I didn't realize how strongly censored this forum is.  I

  • Header Mapping & Value Mapping in XI

    Hi All, I Request you to send me the documentation with screen shots about Header mapping and Value mapping. I am very thankful to you in advance. Regards, Nagarjuna.

  • ITunes 9.2 Cover Flow Size Resetting

    Since updating to 9.2, iTunes will not save the size of my cover flow window. I reposition the cover flow section to about 40% of my screen. When I exit iTunes and reopen, The cover flow art is back down to only like 10%. Anyone else experiencing thi

  • Line item needs to be dispalyed for varient values

    Hi The requirement of the customer is to get the varient values as line item in sales order with main item. Thanks Rambabu