13916729435 发表于 2017-1-22 09:05:50

tomcat部署webapps

  配置虚拟主机还是比较的方便的,所以是我的最爱。

第一步:
     <!-- This Host is the first
"Virtual Host": http://www.example.com/ -->
<Host name="www.example.com"
appBase="/home/example/webapp">
<Context path="" docBase="."/>
</Host>
第二步:在目录C:\WINDOWS\system32\drivers\etc下找到文件Hosts 在该文件中添加
   127.0.0.1 www.example.com 这个目录。
第三步: 重启tom 猫就ok了。配置虚拟主机还是比较的方便的,所以是我的最爱。
第一步:
     <!-- This Host is the first
"Virtual Host": http://www.example.com/ -->
<Host name="www.example.com"
appBase="/home/example/webapp">
<Context path="" docBase="."/>
</Host>
第二步:在目录C:\WINDOWS\system32\drivers\etc下找到文件Hosts 在该文件中添加
   127.0.0.1 www.example.com 这个目录。
第三步: 重启tom 猫就ok了。
页: [1]
查看完整版本: tomcat部署webapps