Customizing Tomcat – Hide ports from URL & Externalize a folder
Before reading this article, make sure that you are already hosting a grails application on Tomcat’s default port along with Apache and mod_proxy running in the server. We are about to explain some customizations in tomcat that you may require.
Tomcat Customizations
1) Hiding Tomcat port in the address bar:
Tomcat loads all applications under the default port 8080. We would be able to access the application in the browser only using this port. If an application is accessed using port numbers other than 80 and 443, all browsers would not hide the port number in the address bar. Accessing the application without the port number using an fqdn is a secure way and gives your web application a more professional look.
In our sample application we have Apache as the front end and Tomcat as the back end. Apache is configured with mod_proxy to route requests that are received in the server’s port 80 to the application’s default port (8080).
In our sample application we have Apache as the front end and Tomcat as the back end. Apache is configured with mod_proxy to route requests that are received in the server’s port 80 to the application’s default port (8080).
Please refer the below Apache configuration:
Comments
Post a Comment