error_page 改变状态码为新的状态码,并显示指定内容

server {  
        listen 80;
        server_name www.espressos.com;
        location / {  
                root /data0/www/bbs;
                index index.html index.htm;
                fastcgi_intercept_errors on;
                error_page 404 =200 /ta.jpg;
                access_log /app/logs/bbs_access.log commonlog;
         }
 
 
 }

 

posted @ 2017-07-03 15:42  bass  阅读(261)  评论(0编辑  收藏  举报