xiufengd

apache-tomcat-7.0.52\conf下server.xml文件

 <Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>

将端口从8080改成80

<Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true">

将localhost改为ip或者域名

在<Host></Host>中间添加<Context path="" docBase="/mytestweb"/>

docBase为项目路径,可以是相对tomcat下webapps目录下的项目名,或者绝对路径。注意,path为空,为空,为空。

重启tomcat就可以了

分类:

技术点:

相关文章:

  • 2018-05-22
  • 2021-11-06
  • 2021-11-16
  • 2021-09-07
  • 2021-04-03
  • 2021-09-27
  • 2021-05-28
  • 2021-07-28
猜你喜欢
  • 2021-09-27
  • 2021-11-06
  • 2021-09-27
  • 2021-11-28
  • 2021-07-05
  • 2022-01-17
  • 2021-10-08
相关资源
相似解决方案