사용자 정의 Nginx 페이지

7229 단어 Nginx
1、404.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <title>404</title>
  <style media="screen">
    html,
    body {
	  margin: 0;
      padding: 0;
      width: 100%;
      height: 100%
    }

    body {
      background: url("./Nginx40401.jpg") no-repeat;
      background-size: 100% 100%;
    }
  </style>
</head>
<body>
</body>
</html>

2. 쿠키 테스트 페이지
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <meta http-equiv="Refresh" content="10"> //      , 10       
</head>
<body>
<h1>test.test.com   </h1>
        cookie<br>
<p>
<script>
document.cookie="guid=A1UD8E5512451111111111"; // cookie,  
document.cookie="city=beijing"; // cookie,  
document.write(document.cookie); //       
</script>
</p>
</body>
</html>

좋은 웹페이지 즐겨찾기