在Tomcat中配置域名:linux下的配置

                        域名的配置

找到/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">

猜你喜欢

转载自www.cnblogs.com/yvanBk/p/8917581.html
今日推荐