Search code examples
linuxapachemod-rewritecentosmod-pagespeed

Config mod_pagespeed for multiple domains


Is there a way to set multiple domains VirtualHosts with Google Pagespeed module?

I've tried this with ModPagespeedDomain with one domain of mine but not sure how to go about multiple ones I have about 14 on one server

I've also tried ModPagespeedMapOriginDomain but this doesn't seem to help either. I basically want combine_javascript and combine_css to work with all sites. I already have filters set up in the config file


Solution

  • ModPagespeed docs have a few examples for how to configure both server-wide and per VHost rewriters: https://developers.google.com/speed/pagespeed/module/configuration#virtual-hosts