作者归档:杨龙

nginx: [emerg] could not build server_names_hash, you should increase server_names_hash_bucket_size: 32

把server_names_hash_bucket_size改大点即可,可以改成64或128试下,放在http {}里

Syntax:server_names_hash_bucket_size size;
Default:server_names_hash_bucket_size 32|64|128;
Context:http

Sets the bucket size for the server names hash tables. The default value depends on the size of the processor’s cache line. The details of setting up hash tables are provided in a separate document.

Entity: line 39: parser error : Entity ‘nbsp’ not defined

在 XML 中,只有 5 个预定义的实体引用,$nbsp; 应该替换为空格~

$content = Entities::replaceAllEntities($content);

在 XML 中,有 5 个预定义的实体引用:

&lt;<小于
&gt;>大于
&amp;&和号
&apos;单引号
&quot;引号

注释:在 XML 中,只有字符 “<” 和 “&” 确实是非法的。大于号是合法的,但是用实体引用来代替它是一个好习惯。