开发者

how to set mod_pagespeed to work on all pages

I've been trying with mod_pagespeed and would like to know if anyone know's how I can add a rule to my httpd.conf that would automatically add all current virtual hosts to the list of running domains:

ModPagepeedDomain http://vhost1.com
ModPagepee开发者_运维问答dDomain http://vhost2.com
ModPagepeedDomain http://vhost3.com

Thank you.


ModPagespeedDomain seems to accept wildcards. From here:

# 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 *

Place this in the conf file proper, outside any vhosts.


Yes, you can use wildcards, but please don't use ModPagespeedDomain * unless you can actually control the whole web!

This declaration decides which resources to rewrite and which not to. It is a contract saying that all servers matching the pattern will have mod_pagespeed installed!

Please use something like:

ModPagespeedDomain vhost?.com

Unless you are actually behind a rewriting proxy that can rewrite from any domain.

Also, you can contact us at mod-pagespeed-discuss@googlegroups.com and list issues at http://code.google.com/p/modpagespeed/issues/list

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜