I follow the instructions from here and this to my server.xml
file for each domain/webapp:
<Host name="domain1.com" autoDeploy="true" appBase="webapps_domain1" unpackWARs="true">
<Alias>www.domain1.com</Alias>
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log." suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" resolveHosts="false"/>
</Host>
and restart the tomcat, but I cannot access the webapp using the domain after that. I also create the directory webapp_domain1
in /var/lib/tomcat9
and copy a war file to it with the name ROOT.war
(also for each domain/webapp).
Anyone can tell me what I am missing here?