- 论坛徽章:
- 0
|
原来的代码:
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 |
|