同一tomcat配置多域名
shell # vi /data0/tomcat/apache-tomcat-6.0.36/conf/server.xml
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
shell # mkdir /data0/tomcat/apache-tomcat-6.0.36/webapps/wap
shell # cat /data0/tomcat/apache-tomcat-6.0.36/webapps/wap/index.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
Insert title here
<%
response.sendRedirect(""); //跳转url
%>
shell # mkdir /data0/tomcat/apache-tomcat-6.0.36/webapps/web
shell # cat /data0/tomcat/apache-tomcat-6.0.36/webapps/web/index.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
Insert title here
<%
response.sendRedirect(""); //跳转url
%>
阅读(742) | 评论(0) | 转发(0) |