Run JSP application with apache using mod proxy

So you have a VPS and you want to host tomcat application and your apache application together in it. Sure you can run them on different ports, but if you want to run jsp app also on port 80, you can use apache’s mod proxy to do so. Follow the following steps to run jsp application with apache using mod proxy.

Edit your apache conf file for your website by the following command

Add/Edit the file and add the following mod below server name

Now your config should look something like this

Quit the editor and restart apache using the following

Now you can find the tomcat/jsp app running on port 80. This will also work with other scripts such as python/djangom nodejs. If you have any questions/feedback feel free to leave a comment.