I have a VM which runs Ubuntu 16.04
and LAMP
and currently is hosting some WordPress sites.
I have implemented locally a web project which runs in Tomcat
server and I want to deploy it in the VM. I am planning to install Apache Tomcat 8 and then deploy the war file of my project there.
My question is :
After the installation of the
Tomcat 8
in the VM, should I make an extra setting? in the Apache WebServer or somewhere else?To connect my webApplication with a domain name, when setting the Virtual host in the
.conf
file, in theDocumentRoot
I will add the path of the webapp?
.conf file:
<VirtualHost *:80>
ServerAdmin admin@test.com
ServerName test.com
ServerAlias www.test.com
DocumentRoot /opt/tomcat/webapps/webApplication
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>