reading file and replaceing something
public String interceptString(String str, int len) {// length属性读出来的汉字长度为1if (str.length() * 2 <= len) {return str;}int strlen = 0;String s = "";for (int i = 0; i < str.length(); i++) {if (str.codePointAt(i) > 128) {strlen = strlen + 2;if (strlen > len) {return s.substring(0, s.length() - 1) + "...";}} else {strlen = strlen + 1;if (strlen > len) {return s.substring(0, s.length() - 2) + "...";}}s = s + str.charAt(i);}return s;}//读入文件
String templateContent = "";
String path="D:\\jboss-4.2.0.GA\\server\\default\\deploy\\dkzg.war\\xijian01.html";
FileInputStream fileinputstream = new FileInputStream(path);// 读取模块文件
int lenght = fileinputstream.available();
byte bytes[] = new byte;
fileinputstream.read(bytes);// 读入bytes[]中
fileinputstream.close();// 关闭文件输入流
templateContent = new String(bytes);
templateContent=templateContent.replaceAll("#userName#", login.getLoginName());
templateContent=templateContent.replaceAll("#loginName#", login.getLoginName());
templateContent=templateContent.replaceAll("#password#", login.getPassword());
templateContent=templateContent.replaceAll("#userId#", login.getId());
templateContent=templateContent.replaceAll("#time#", dateString);
String webPath = "http://localhost";URL url = null;url = new URL(webPath + "/index!to_index.action");InputStream ins = url.openStream();FileOutputStream fos = new FileOutputStream(new File(request.getRealPath("/")+ "index.html"));// FileInputStream fis = new FileInputStream(getImgFile());byte[] buffer = new byte;int len = 0;while ((len = ins.read(buffer)) > 0) {fos.write(buffer, 0, len);}if (fos != null) {fos.close();}if (ins != null)ins.close();
<%@ page contentType="text/html; charset=UTF-8" language="java"
import="java.sql.*" errorPage=""%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>ok</title>
</head>
<body>
<div>
<img id="imageId"
src='<%=path%>/upload_img/<s:property value="msg"/>'
/>
</div>
<script type="text/javascript">
//image是原图象,w是最大显示的宽度,h是最大显示的高度
var wa="220";
var ha="300";
function imageShow(image,w,h){
var i=image.width;
var j=image.height;
if(i>w)//实际宽度大于显示的
{
var width_Bili=w/i;//缩小的比列
var height_Bili=h/j;//缩小的比列
var bili=width_Bili;
if(width_Bili<height_Bili)
{
bili=width_Bili;
}
else
{
bili=height_Bili;
}
i=i*bili;
j=j*bili;
}else//实际宽度小于显示的
{
if(j>h)//实际高度大于显示的高度,就要缩
{
bili=h/j;
i=i*bili;
j=j*bili;
}
}
wa=i;
ha=j;
var src=document.getElementById("imageId").src;
var w=document.getElementById("imageId").width;
var h=document.getElementById("imageId").height;
var html="<img src='"+src+"' width='"+wa+"' height='"+ha+"'/>";
insertHtml('text', html);
//移除遮住层 (照片上传时候先遮住以免重复点击重复上传)
if(window.parent.parent.document.getElementById('upload_lock_div')!=null){
window.parent.parent.document.body.removeChild(window.parent.parent.document.getElementById('upload_lock_div'));
}
//移除文字(移除照片在上传的提示文字)
if(window.parent.parent.document.getElementById('upload_font_div')!=null){
window.parent.parent.document.body.removeChild(window.parent.parent.document.getElementById('upload_font_div'));
}
//把图片填加完后,就将其div隐藏掉
window.parent.KE.layout.hide('text');
//window.parent.document.getElementById()
}
function insertHtml(id, html) {
window.parent.KE.util.focus(id);
window.parent.KE.util.selection(id);
window.parent.KE.util.insertHtml(id, html);
}
</script>
<s:property value="msg" />
</body>
</html>
String webPath = "http://localhost";
URL url = null;
url = new URL(webPath + "/index!to_index.action");
InputStream ins = url.openStream();
FileOutputStream fos = new FileOutputStream(new File(request
.getRealPath("/")
+ "index.html"));
// FileInputStream fis = new FileInputStream(getImgFile());
byte[] buffer = new byte;
int len = 0;
while ((len = ins.read(buffer)) > 0) {
fos.write(buffer, 0, len);
}
if (fos != null) {
fos.close();
}
if (ins != null)
ins.close();
function interceptString(str,len) { //length属性读出来的汉字长度为1 if(str.length*2 <= len) { return str; } var strlen = 0; var s = ""; for(var i = 0;i < str.length; i++) { if(str.charCodeAt(i) > 128) { strlen = strlen + 2; if(strlen > len) { return s.substring(0,s.length-1) + "..."; } } else { strlen = strlen + 1; if(strlen > len) { return s.substring(0,s.length-2) + "..."; } } s = s + str.charAt(i); } return s; } function imageShow(image, w, h) {var i = image.width;var j = image.height;image.width = w;image.height = h;if (i > w) {var width_Bili = w / i;var height_Bili = h / j;var bili = width_Bili;if (width_Bili < height_Bili) {bili = width_Bili;} else {bili = height_Bili;}i = i * bili;j = j * bili;} else {if (j > h) {bili = h / j;i = i * bili;j = j * bili;}}image.width = i;image.height = j;}//验证邮箱格式function isEmail(strEmail) {if (strEmail.search(/^\w+((-\w+)|(\.\w+))*\@+((\.|-)+)*\.+$/) != -1) {return true;} else {return false;}}//Email验证function checkEmail(a) {return /\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/.test(a);/* var i=a.length; var temp = a.indexOf('@'); var tempd = a.indexOf('.'); if (temp > 1)if ((i-temp) > 3) if ((i-tempd)>0)return true; return false;*/}//url校验function isUrl(url) {var urlpatern1 = /^https?:\/\/(()+(\.)?)*(:\d+)?(\/((\.)?(\?)?=?&?(\?)?)*)*$/i;if (!urlpatern1.test(url)) {return false;}return true;}// 电话号码验证function isPhone(tel) {var i, j, strTemp;strTemp = "0123456789-()#+ ";for (i = 0; i < tel.length; i++) {j = strTemp.indexOf(tel.charAt(i));if (j == -1) {return false;}}return true;}function checkPhone(tel) {var patrn = /^((\(\d{2,3}\))|(\d{3}\-))?(\(0\d{2,3}\)|0\d{2,3}-)?\d{6,7}(\-\d{1,4})?$/;if (!patrn.exec(tel)) { // errorinfo += "你输入的的客户经办人(2)固定电话格式不正确,请重新输入!n"; return false;} else {return true;}}//移动电话格式function isMobile(mobile) {//true 是移动电话return mobile.match(/^(13{9}|15{9})$/);}//数值检测function isNumber(name) {if (name.length == 0) {return false;}for (i = 0; i < name.length; i++) {if (name.charAt(i) < "0" || name.charAt(i) > "9") {return false;}}return true;}//isNullfunction isNull(str) {if (str == null || str == "") {return true;}var i = 0;for (i = 0; i < str.length; i++) {if (str.charAt(i) != " ") {return false;}}if (i == str.length) {return true;}return false;}//英文值检测function isEnglish(name) {if (name.length == 0) {return false;}for (i = 0; i < name.length; i++) {if (name.charCodeAt(i) > 128) {return false;}}return true;}//中文值检测function isChinese(name) {if (name.length == 0) {return false;}for (i = 0; i < name.length; i++) {if (name.charCodeAt(i) > 128) {return true;}}return false;}//身份证验证function isIDCar(str) {var patrn = /^(({14}{1})|({17}{1}))$/;if (!patrn.exec(str)) { //var errorinfo = "你输入法人代表的身份证号码格式不正确,请输入15位或者18位的身份证号码!n";return false;} else {return false;}}//是非负浮点数字则返回true,否则返回falsefunction floatChecked(str) {if (!isNull(str)) {var re = /^\d*\.\d*$/;return re.test(str);}else{return true;}}//非负整数则返回true,否则返回falsefunction intChecked(str) {if (!isNull(str)) {var re = /^\d*$/;return re.test(str);}else{return true;}}var cur_page = 1;var page_size = 20;var total_page = 0;var row=0;var page_str = "";var func = "";function page(total_row) { if (total_row % page_size == 0) {total_page = total_row / page_size;} else {total_page = parseInt(total_row / page_size) + 1;}var page = "当前第" + cur_page + "页&nbsp;&nbsp;共" + total_page + "页&nbsp;&nbsp;<a href='#' onclick=\"return go_page('1')\">首页</a>&nbsp;&nbsp;";if (cur_page > 1) {page += "<a href='#' onclick=\"return go_page('" + (cur_page - 1) + "')\">上一页</a>&nbsp;&nbsp;";} else {page += "上一页&nbsp;&nbsp;";}if (cur_page < total_page) {page += "<a href='#' onclick=\"return go_page('" + (cur_page - (-1)) + "')\">下一页</a>&nbsp;&nbsp;";} else {page += "下一页&nbsp;&nbsp;";}page += "<a href='#' onclick=\"return go_page('" + total_page + "')\">尾页</a>&nbsp;&nbsp;";page += "&nbsp;&nbsp;跳转至&nbsp;";page += "<select id='pageN' onchange='go_page(this.value)'>";for (var k = 1; k <= total_page; k++) {if (k == cur_page) {page += "<option value='" + k + "' selected='selected'>&nbsp" + k + "&nbsp;</option>";} else {page += "<option value='" + k + "'>&nbsp;" + k + "&nbsp;</option>";}}page += "</select>页";return page;//page_str = page;}function to_page(total_row) {if (total_row % page_size == 0) {total_page = total_row / page_size;} else {total_page = parseInt(total_row / page_size) + 1;}var p_start = 0;var p_end = 0;page_str = "";p_start = cur_page - 5;// 6if (p_start < 0) {p_start = 0;}p_end = p_start + 10;// 15if (p_end > total_page) {p_end = total_page;}p_start = p_end - 10;// 5if (p_start <= 0) {p_start = 0;}page_str += "<a href='#' onclick=\"return go_page('" + (cur_page - 1) + "')\">\u4e0a\u4e00\u9875</a>";for (var j = p_start; j < p_end; j++) {if ((j + 1) != cur_page) {page_str += "<a href='#' onclick=\"return go_page('" + (j + 1) + "')\">&nbsp;" + (j + 1) + "&nbsp;</a>";} else {page_str += "<a href='#' style='background:#B1369C''onclick=\"return go_page('" + (j + 1) + "')\"><font color='#F2F242' style='background:#B1369C'>&nbsp;" + (j + 1) + "&nbsp;</font></a>";}}page_str += "<a href='#' onclick=\"return go_page('" + (cur_page -(-1)) + "')\">\u4e0b\u4e00\u9875</a>";}
public class DkzgSessionAttributeListener extends HttpServlet implementsHttpSessionListener,HttpSessionAttributeListener {public void sessionCreated(HttpSessionEvent sessionEvent) {// TODO 自动生成方法存根//每建立一次会话就加一//System.out.print("在线====加一=========");sessionEvent.getSession().setMaxInactiveInterval(1800);//设置超时时间,以秒为单位1800OnlineCount.setOnlineUser(OnlineCount.getOnlineUser()+1);//ApplicationContext ctx=WebApplicationContextUtils.getWebApplicationContext(sessionEvent.getSession().getServletContext());ServletContext servletContext=sessionEvent.getSession().getServletContext();servletContext.setAttribute("onlineUser", OnlineCount.getOnlineUser());//System.out.println("在线数目===="+OnlineCount.getOnlineUser());//sessionEvent.getSession().setAttribute("is_who", "游客");//第一次开始会话则创建属性为游客,待后面登陆后修改他的游客身份,是会员身份}public void sessionDestroyed(HttpSessionEvent sessionEvent) {// TODO 自动生成方法存根//关闭会话且超过了上面设置的时间就减一,非法关闭浏览器的时候超过了上面设置的时间就会销毁session,并且会remove session的相关属性//System.out.print("在线====减一=========");OnlineCount.setOnlineUser(OnlineCount.getOnlineUser()-1);ServletContext servletContext=sessionEvent.getSession().getServletContext();servletContext.setAttribute("onlineUser", OnlineCount.getOnlineUser());//System.out.println("在线数目===="+OnlineCount.getOnlineUser());}public void attributeAdded(HttpSessionBindingEvent sessionEvent) {// TODO 自动生成方法存根HttpSession session=sessionEvent.getSession();//session.getAttributeNames()记录的是位置,ip//System.out.println("session.getAttributeNames()====="+session.getAttributeNames());//sessionEvent.getName();记录的是创建session属性的名字String attributeName=sessionEvent.getName();//System.out.println("-----------attributeAdded="+attributeName+"="+sessionEvent.getValue());//sessionEvent.getValue():记录的是对应的session属性值//添加loginUserId:session属性时if(attributeName.equals("user_id")){String userId=sessionEvent.getValue().toString();//在线会员加一OnlineCount.setOnlineMember(OnlineCount.getOnlineMember()+1);ServletContext servletContext=sessionEvent.getSession().getServletContext();servletContext.setAttribute("onlineMember", OnlineCount.getOnlineMember());//System.out.println("在线会员数目===="+OnlineCount.getOnlineMember());//sessionEvent.getSession().removeAttribute("is_who");}}//当调用request.getSession().removeAttribute("loginUserId")时会调用这个方法public void attributeRemoved(HttpSessionBindingEvent sessionEvent) {// TODO 自动生成方法存根//用户选择安全退出系统或因为超时自动退出系统//String userId=sessionEvent.getValue().toString();//System.out.println("-----------remove");//sessionEvent.getSession().g// 更新用户状态String attributeName=sessionEvent.getName();//System.out.println("-----------remove="+attributeName);//sessionEvent.getValue():记录的是对应的session属性值if(attributeName.equals("user_id")){String userId=null;String nick=null;String admin=null;int overtimes=0;//在线会员加一OnlineCount.setOnlineMember(OnlineCount.getOnlineMember()-1);ServletContext servletContext=sessionEvent.getSession().getServletContext();servletContext.setAttribute("onlineMember", OnlineCount.getOnlineMember());userId=sessionEvent.getValue().toString();try{nick=(String )sessionEvent.getSession().getAttribute("nick_name");admin=(String)sessionEvent.getSession().getAttribute("admin_id");}catch (Exception e) {//出现 Session already invalidated异常 代表是用户超时未操作自动退出 //overtimes 为上面设置的超时时间值 为了下面统计不算在用户在线时间段内(用于减掉)nick="";overtimes=1800000;//单位为毫秒// TODO: handle exception}Session s = null;Transaction t=null;String hql="update Login as l set l.isOnline='0' where l.isOnline='1' and l.id='"+ userId + "'";//非管理员登录客户资料则有统计在线时间,否则不可统计if(userId!=null&&nick!=null&&!(nick.equals("管理员")&&admin!=null)){try {//session移除则将其登陆状态改为0s = HibernateSessionFactory.getSession();t=s.beginTransaction();t.begin();Listl=s.createQuery("select l.lastLoginDate from Login as l where l.id='"+userId+"'").list();if(l!=null&&l.size()>0){Date d=(Date) l.get(0);Date now=new Date();Long length=now.getTime()-d.getTime();//得到毫秒差//减去超时时间length=length-overtimes;if(length<0){//小于0说明用户重新登录(有一个新的 session 在操作),此次session失效不可以将其标为离线length=length-length;//赋值为零return ;}Long min=length/60000;if(min>0){//超过1分才添加时间//更改在线时长hql="update Login as l set l.isOnline='0',l.onlineMinute=(l.onlineMinute+"+min+") where l.isOnline='1' and l.id='"+ userId + "'";}}t.commit();} catch (Exception ex) {t.rollback();ex.printStackTrace();} finally {HibernateSessionFactory.closeSession();if(t!=null){t=null;}if(s!=null){s=null;}}}else{//是管理员操作 则不需要统计在线情况(在线与否,以及在线时长)return ;}try {//session移除则将其登陆状态改为0s = HibernateSessionFactory.getSession();t=s.beginTransaction();t.begin();s.createQuery(hql).executeUpdate();t.commit();} catch (Exception ex) {t.rollback();ex.printStackTrace();} finally {HibernateSessionFactory.closeSession();if(t!=null){t=null;}if(s!=null){s=null;}}}}//原有session属性值被替代,用同一个属性名修改其属性值的时候会调用这个方法(如用户选择更改登陆时)public void attributeReplaced(HttpSessionBindingEvent sessionEvent) {// TODO 自动生成方法存根//被替代的原有用户id,用户被替代了,说明此用户已经退出了该系统// 更新用户状态//application监听String attributeName=sessionEvent.getName();//sessionEvent.getValue():记录的是对应的session属性值if(attributeName.equals("user_id")){String userId=sessionEvent.getValue().toString();Session s = null;Transaction t=null;String hql="update Login as l set l.isOnline='0' where l.isOnline='1' and l.id='"+ userId + "'";String nick=(String )sessionEvent.getSession().getAttribute("nick_name");String admin=(String)sessionEvent.getSession().getAttribute("admin_id");//非管理员登录客户资料则有统计在线时间,否则不可统计if(nick!=null&&!(nick.equals("管理员")&&admin!=null)){try {//session移除则将其登陆状态改为0s = HibernateSessionFactory.getSession();t=s.beginTransaction();t.begin();Listl=s.createQuery("select l.lastLoginDate from Login as l where l.id='"+userId+"'").list();if(l!=null&&l.size()>0){Date d=(Date) l.get(0);Date now=new Date();Long length=now.getTime()-d.getTime();//得到毫秒差Long min=length/60000;//更改在线时长hql="update Login as l set l.isOnline='0',l.onlineMinute=(l.onlineMinute+"+min+") where l.isOnline='1' and l.id='"+ userId + "'";}t.commit();} catch (Exception ex) {t.rollback();ex.printStackTrace();} finally {HibernateSessionFactory.closeSession();if(t!=null){t=null;}if(s!=null){s=null;}}}else{//是管理员操作 则不需要统计在线情况(在线与否,以及在线时长)return ;}try {s = HibernateSessionFactory.getSession();t=s.beginTransaction();t.begin();s.createQuery(hql).executeUpdate();t.commit();} catch (Exception ex) {t.rollback();ex.printStackTrace();} finally {HibernateSessionFactory.closeSession();if(t!=null){t=null;}if(s!=null){s=null;}}}}}
try {//String path = "admin/user.html";FileInputStream fileinputstream = new FileInputStream(request.getRealPath(path));// 读取模块文件int lenght = fileinputstream.available();byte bytes[] = new byte;fileinputstream.read(bytes);// 读入bytes[]中fileinputstream.close();// 关闭文件输入流templateContent = new String(bytes);} catch (Exception ex) {ex.printStackTrace();return "发送失败,读入模板错误!";}StringBuffer hql = new StringBuffer("select l.loginName,l.userinfo.nickname from Login as l where l.onlineOrder='1' order by l.lastLoginDate desc");// 发送邮件MimeMessage msg = this.sender1.createMimeMessage();MimeMessageHelper helper;try {helper = new MimeMessageHelper(msg, true, "GB2312");helper.setFrom("aiwow@16zg.com");} catch (MessagingException e1) {// TODO Auto-generated catch blocke1.printStackTrace();return "邮件异常,发送邮件失败,请重试!";}List<Object[]> t = this.findAll(hql.toString());int count = 0;for (int i = 0; i < t.size(); i++) {Object str[] = t.get(i);//str="576876134@qq.com";//str="superyang";templateContent = templateContent.replaceAll("#nickname#", str.toString());try {helper.setTo(str.toString());helper.setText(templateContent, true);helper.setSubject("爱我网“淘宝”大行动!");this.sender1.send(msg);count++;} catch (Exception e) {// TODO Auto-generated catch block }}File tm = new File(ServletActionContext.getRequest().getRealPath("/tm.jsp"));input = new FileInputStream(tm);int length = input.available();byte b[] = new byte;input.read(b);String tmstr = new String(b, "UTF-8");tmstr = tmstr.replaceAll("tm", str);System.out.println("-->" + tmstr + "-->");File ft = new File(request.getRealPath("list_category.jsp"));if (!ft.exists())ft.createNewFile();out = new FileOutputStream(ft);out.write(tmstr.getBytes("UTF-8"));
#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:80>
#ServerAdmin 531197521@qq.com
DocumentRoot D:/jboss-4.2.0/jboss-4.2.0.GA/server/default/deploy/xbw.war
ServerName www.xinbaowang.com
ServerAlias xinbaowang.com
JkAutoAlias D:/jboss-4.2.0/jboss-4.2.0.GA/server/default/deploy/xbw.war
DirectoryIndex index.html
ErrorDocument 404 index.html
ErrorDocument 403 index.html
#CustomLog "logs/xinbw-access.log" common
JkMount /*.jsp jboss_
JkMount /*.action jboss_
JkMount /imgservlet jboss_
JkMount /dwr/* jboss_
JkUnMount /*.html jboss_
JkUnMount /*.jpgjboss_
JkUnMount /*.gifjboss_
JkUnMount /*.swf jboss_
JkUnMount /*.css jboss_
JkUnMount /js/* jboss_
</VirtualHost>
<VirtualHost *:80>
ServerAdmin 531197521@qq.com
DocumentRoot D:/jboss-4.2.0/jboss-4.2.0.GA/server/default/deploy/dkzg.war
ServerNamewww.aiwowang.cn
ServerAlias aiwowang.cn
ServerAlias www.aiwow.cc
ServerAlias aiwow.cc
JkAutoAlias D:/jboss-4.2.0/jboss-4.2.0.GA/server/default/deploy/dkzg.war
DirectoryIndex index.html
ErrorDocument 404 login/404error.html
ErrorDocument 403 index.html
#CustomLog "logs/aiwow-access.log" common
JkMount /*jboss_
JkUnMount /*.html jboss_
JkUnMount /*.jpgjboss_
JkUnMount /*.gifjboss_
JkUnMount /*.swf jboss_
JkUnMount /*.css jboss_
JkUnMount /js/* jboss_
</VirtualHost>
<VirtualHost *:80>
ServerAdmin 531197521@qq.com
DocumentRoot D:/jboss-4.2.0/jboss-4.2.0.GA/server/default/deploy/daohang.war
ServerName www.1816.cc
ServerAlias 1816.cc
JkAutoAlias D:/jboss-4.2.0/jboss-4.2.0.GA/server/default/deploy/daohang.war
DirectoryIndex index.html
#CustomLog "logs/1816-access.log" common
JkMount /*.jsp jboss_
JkMount /*.do jboss_
JkMount /authImg jboss_
JkMount /dwr/* jboss_
JkMount /home/* jboss_
JkUnMount /*.html jboss_
JkUnMount /*.jpgjboss_
JkUnMount /*.gifjboss_
JkUnMount /*.swf jboss_
JkUnMount /*.css jboss_
JkUnMount /js/* jboss_
JkUnMount /indexJs/* jboss_
</VirtualHost>
<VirtualHost *:80>
ServerAdmin 531197521@qq.com
DocumentRoot D:/jboss-4.2.0/jboss-4.2.0.GA/server/default/deploy/binlu.war
ServerName www.binlu.cc
ServerAlias binlu.cc
JkAutoAlias D:/jboss-4.2.0/jboss-4.2.0.GA/server/default/deploy/binlu.war
JkMount /* jboss_
JkUnMount /*.html jboss_
JkUnMount /*.jpgjboss_
JkUnMount /*.gifjboss_
JkUnMount /*.swf jboss_
JkUnMount /*.css jboss_
</VirtualHost>
<VirtualHost *:80>
ServerAdmin 531197521@qq.com
DocumentRoot D:/jboss-4.2.0/jboss-4.2.0.GA/server/default/deploy/sll.war
ServerName www.vslzg.com
ServerAlias vslzg.com
ServerAliaswww.yslzg.com
ServerAliasyslzg.com
JkAutoAlias D:/jboss-4.2.0/jboss-4.2.0.GA/server/default/deploy/sll.war
JkMount /* jboss_
JkUnMount /*.html jboss_
JkUnMount /*.jpgjboss_
JkUnMount /*.gifjboss_
JkUnMount /*.swf jboss_
JkUnMount /*.css jboss_
</VirtualHost>
<VirtualHost *:80>
ServerAdmin 531197521@qq.com
DocumentRoot D:/jboss-4.2.0/jboss-4.2.0.GA/server/default/deploy/hlgq.war
ServerNamewww.valetenoguci.com
ServerAlias valetenoguci.com
JkAutoAlias D:/jboss-4.2.0/jboss-4.2.0.GA/server/default/deploy/hlgq.war
JkMount /* jboss_
JkUnMount /*.html jboss_
JkUnMount /*.jpgjboss_
JkUnMount /*.gifjboss_
JkUnMount /*.swf jboss_
JkUnMount /*.css jboss_
</VirtualHost>
<VirtualHost *:80>
ServerAdmin 531197521@qq.com
DocumentRoot D:/jboss-4.2.0/jboss-4.2.0.GA/server/default/deploy/lepj.war
ServerNamewww.tulange.com
ServerAlias tulange.com
JkAutoAlias D:/jboss-4.2.0/jboss-4.2.0.GA/server/default/deploy/lepj.war
JkMount /* jboss_
JkUnMount /*.html jboss_
JkUnMount /*.jpgjboss_
JkUnMount /*.gifjboss_
JkUnMount /*.swf jboss_
JkUnMount /*.css jboss_
</VirtualHost>
<VirtualHost *:80>
ServerAdmin 531197521@qq.com
DocumentRoot D:/jboss-4.2.0/jboss-4.2.0.GA/server/default/deploy/qqr.war
ServerNamewww.haoqingren.com
ServerAlias haoqingren.com
JkAutoAlias D:/jboss-4.2.0/jboss-4.2.0.GA/server/default/deploy/qqr.war
JkMount /* jboss_
JkUnMount /*.html jboss_
JkUnMount /*.jpgjboss_
JkUnMount /*.gifjboss_
JkUnMount /*.swf jboss_
JkUnMount /*.css jboss_
</VirtualHost>
页:
[1]