目录
1.配置TongWeb兼容SSi
- 修改TongWeb7.0/conf/default-web.xml文件
<servlet>
<servlet-name>ssi</servlet-name>
<servlet-class>
com.tongweb.catalina.ssi.SSIServlet
</servlet-class>
<init-param>
<param-name>buffered</param-name>
<param-value>1</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>expires</param-name>
<param-value>666</param-value>
</init-param>
<init-param>
<param-name>isVirtualWebappRelative</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>inputEncoding</param-name>
<param-value>utf-8</param-value>
</init-param>
<init-param>
<param-name>outputEncoding</param-name>
<param-value>utf-8</param-value>
</init-param>
<load-on-startup>4</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>ssi</servlet-name>
<url-pattern>*.html</url-pattern>
<url-pattern>*.shtml</url-pattern>
</servlet-mapping>
<filter>
<filter-name>ssi</filter-name>
<filter-class>
com.tongweb.catalina.ssi.SSIFilter
</filter-class>
<init-param>
<param-name>contentType</param-name>
<param-value>text/x-server-parsed-html(;.*)?</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>expires</param-name>
<param-value>666</param-value>
</init-param>
<init-param>
<param-name>isVirtualWebappRelative</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>inputEncoding</param-name>
<param-value>utf-8</param-value>
</init-param>
<init-param>
<param-name>outputEncoding</param-name>
<param-value>utf-8</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>ssi</filter-name>
<url-pattern>*.html</url-pattern>
<url-pattern>*.shtml</url-pattern>
</filter-mapping>
2.修改TongWeb端口号
- 修改TongWeb7.0/conf/ tongweb.xml文件
3.登录TongWeb
TongWeb登录地址:http://192.168.0.4:9060/console/(TongWeb必需使用ip访问,不能使用localhost)
默认初始账号/密码:thanos/thanos123.com
4.TongWeb部署
1.点击 应用管理 部署应用
2.选择文件(文件必需是 .war 或 .rar)
3.访问前缀也就是页面访问的前缀
4.下一步
5.完成即可