域名的配置
找到/usr/tomcat/apache-tomcat-8.5.30/conf的目录,找到server.xml文件,到
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true">
配置
name="域名"
appBase="webapps/访问的指定文件"
案例
<Host name="www.thadiamond.com" appBase="webapps/dist"
unpackWARs="true" autoDeploy="true">