2010-11-04 23 views
0

我一直在嘗試mod_pagespeed並想知道是否有人知道我如何將規則添加到我的httpd.conf那將自動將所有當前虛擬主機添加到運行列表域如何設置mod_pagespeed在所有頁面上工作

ModPagepeedDomain http://vhost1.com 
ModPagepeedDomain http://vhost2.com 
ModPagepeedDomain http://vhost3.com 

謝謝。

+0

請[email protected]和列表的問題與我們聯繫不以單一的,以前從未見過的標籤提問。這破壞了標籤系統的重點。 – skaffman 2010-11-04 11:53:55

+0

@skaffman我站好了。謝謝。 – Frankie 2010-11-04 12:15:44

回答

5

ModPagespeedDomain似乎接受通配符。從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 * 

將這個conf文件中設置正確,任何虛擬主機之外。

+0

它確實有用!謝謝! – Frankie 2010-11-04 14:47:52

1

是的,你可以使用通配符,但是請不要使用ModPagespeedDomain *,除非你實際上可以控制整個網絡!

此聲明決定要重寫哪些資源,哪些不重寫。這是一個合同,說所有匹配模式的服務器都會安裝mod_pagespeed!

請使用類似:

ModPagespeedDomain vhost?.com 

除非你是背後實際上重寫代理可以從任何域改寫。

此外,您還可以在http://code.google.com/p/modpagespeed/issues/list

相關問題