Chinaunix

标题: 修改squid在出错页面显示版本信息 [打印本页]

作者: 51learn    时间: 2009-02-17 11:44
标题: 修改squid在出错页面显示版本信息
原来的代码:
src/errorpage.c
修改文件: src/errorpage.c
static const struct {
int type; /* and page_id */
const char *text;
} error_hard_text[] = {
{
ERR_SQUID_SIGNATURE,
"
"
"
"
"Generated %T by %h (%s)
"
"
"
}
};
下面是squid正常的错误页面代码对应的源代码:
Generated Fri, 08 Mar 2002 06:10:52 GMT by sihaitest (Squid/2.8.STABLE1)
很明显,我修改以后的代码如下:
static const struct {
    int type;                   /* and page_id */
    const char *text;
} error_hard_text[] = {
    {
        ERR_SQUID_SIGNATURE,
            "
"
            "
"
            "Generated %T by 段江 (公司网络数据中心)
"
            "
"
    }
};
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/87203/showart_1831257.html




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2