Two war applications can run simultaneously in the same root context

1

I want my application to run in a different context than the name of the project, for that I found this solution in the forum Change the context ( URL Root) of a web project in eclipse that's fine, but my question is if I have two independent applications (proyecto1.war and proyecto2.war) these can use the same example context

www.dominio.com/MyContext/proyecto1

www.dominio.com/MyContext/proyecto2

and what should I have in mind to do it. Thank you very much

    
asked by isaac 24.10.2018 в 18:12
source

1 answer

0

The customization of the link is managed from the application server itself (if it offers that functionality) or by using " Apache HTTP Server " as a proxy. You can do type redirections:

http://servidor.com  >>> http://servidorTomcat:8080/appPrincipal-pro

http://test.servidor.com  >>> http://servidorTomcat:8080/appPrincipal-test

http://servidor.com/blogs/pepe  >>> http://servidorPHP:80/webs/blogPepe

I do not remember how it was configured. I think they call it Reverse Proxy:

link

link

    
answered by 05.11.2018 в 13:57