我一直在尝试使用mod_pagespeed并想知道是否有人知道我如何向我添加一条规则,该规则httpd.conf
会自动将所有当前虚拟主机添加到正在运行的域列表中:
ModPagepeedDomain http://vhost1.com
ModPagepeedDomain http://vhost2.com
ModPagepeedDomain http://vhost3.com
谢谢你。
我一直在尝试使用mod_pagespeed并想知道是否有人知道我如何向我添加一条规则,该规则httpd.conf
会自动将所有当前虚拟主机添加到正在运行的域列表中:
ModPagepeedDomain http://vhost1.com
ModPagepeedDomain http://vhost2.com
ModPagepeedDomain http://vhost3.com
谢谢你。
ModPagespeedDomain
似乎接受通配符。从这里:
# Wildcards (* and ?) are allowed in the domain specification. Be
# careful when using them as if you rewrite domains that do not
# send you traffic, then the site receiving the traffic will not
# know how to serve the rewritten content.
ModPagespeedDomain *
将它放在适当的 conf 文件中,在任何虚拟主机之外。
是的,您可以使用通配符,但请不要使用 ModPagespeedDomain *,除非您实际上可以控制整个网络!
这个声明决定了哪些资源要重写,哪些不重写。合同规定所有匹配该模式的服务器都将安装 mod_pagespeed!
请使用类似的东西:
ModPagespeedDomain vhost?.com
除非您实际上支持可以从任何域重写的重写代理。
此外,您可以通过 mod-pagespeed-discuss@googlegroups.com 与我们联系,并在http://code.google.com/p/modpagespeed/issues/list上列出问题