您的位置:首页 > 运维架构 > Tomcat

tomcat设置图片服务器

2016-07-29 20:22 323 查看

在tomcat 的conf目录下的server.xml里面添加如下代码:

<Service name="newtest">
<Connector port="8089"
protocol="HTTP/1.1"
connectionTimeout="20000"
URIEncoding="GBK"
redirectPort="8443" />
<-- host ip address-->
<Engine name="newtest" defaultHost="***.***.***.***">
<Host name="***.***.***.***" appBase="/opt/tomcat8/webapps"  unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Context path="/" docBase="/home/yc/image" debug="0" reloadable="false"/>
</Host>
</Engine>
</Service>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: