- Stop Tomcat server
- Add an application context file in %Tomcat%/conf/Catalina/localhost (myapp.xml for instance)
<Context docBase="F:/myapp" path="/myapp" reloadable="false">
</Context>
docBase attribute defines where your application is deployed physicaly
path attribute defines the URL path on which the server will expose the application
- In the myappX.properties ('X' beeing a number from 1 to 5) resource file, declare the URL and the title of the link to the application
myapp4.window.title = My application
myapp4.menu.1.link.1.href = https://www.mycompany.com/myapp/
- Add a proxypass configuration in the Apache server configuration (%Apache%/conf/httpd.conf)
Proxypass /myapp ajp://localhost:8109/myapp
- Restart Apache server
- Restart Tomcat server