`

使用niginx记录遇到的坑

 
阅读更多
这是一个小demo中遇到的坑,记录记录警示自己

<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <%-- <base href="<%=basePath%>">  ***坑:但用了nigix做代理时,加了这个会走真实的端口,不会走nigix代理的端口,所以这个要干掉--%>
    <title>My JSP 'index.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">   
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
  </head>
 
  <body>
    <hr>
    <form action="/dobat/bat/dobataction!up">
          &nbsp;&nbsp;&nbsp;<input type="submit" value="执行"/>
    </form>
    <hr>
    <span>
          &nbsp;&nbsp;&nbsp;<s:property value='errorCode'/>
    </span>
    <hr>
  </body>
</html>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics