码迷,mamicode.com
首页 > 其他好文 > 详细

ssi技术

时间:2015-01-28 09:34:24      阅读:172      评论:0      收藏:0      [点我收藏+]

标签:

html页面

<!DOCTYPE html>
<html>
<head>
<title>测试ssi</title>
<meta name="generator" content="Bluefish 2.2.4" >
<meta name="author" content="shenxi" >
<meta name="date" content="2014-04-25T10:13:12+0800" >
<meta name="copyright" content="">
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8">
<meta http-equiv="content-style-type" content="text/css">
<meta http-equiv="expires" content="0">
<meta >
</head>
<body>
<h1>测试ssi</h1>
<h3>头部</h3>
<!--#include file="/test/header.html"-->
<h3>页体</h3>
<!--#include file="/test/ssi.php"-->
<h3>尾部</h3>
<!--#include file="/test/footer.html"-->
</body>
</html>

在php_app.conf文件中添加

rewrite_log on;

location / {
#       try_files       $uri $uri/ /missing.html;
#        ssi on;
#        ssi_silent_errors on;
}
location = /data/ {
            return 404;
}

location ~ "^/cgi/" {
            return 404;
}
# location = /missing.html {
#       root /data/webroot/pre_file;
# }
# error_page   500 502 503 504 404  /missing.html;

location ~ \.php$ {
        if ($uri !~* "^/data/"){
                fastcgi_pass   127.0.0.1:9000;
        }
        include        fastcgi.conf;
        ssi on;
        ssi_silent_errors on;
}

 

ssi技术

标签:

原文地址:http://www.cnblogs.com/wangkongming/p/4254935.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!