Hi,
I have a question about a particular functionality with pagespeed and I'm not in a position to be able to test it myself at the moment so I was hoping someone here would know. I can't find this situation mentioned the documentation anywhere.
Essentially I'm wondering if the (using the apache module) ModPagespeedMapProxyDomain and ModPagespeedMapRewriteDomain settings work together or if they're mutually exclusive.
The situation where I'm hoping to apply this is in relation to images, with shared images and local images in the same location. For example say we have the following image url paths:
In my situation the paths 1 and 2 are local images (static, checked in assets which are deployed) and paths a and b are shared images (all app servers need access to them, variable assets changed by the system). Currently the assets in a and b are synced between servers but this is a pain and we want to move this to shared storage in Amazon S3.
We also use Cloudfront as a CDN, which we currently map to with the ModPagespeedMapRewriteDomain declaration. Amazon S3 supports file access by URL so we thought we could use the ModPagespeedMapProxyDomain declaration for this. The question is as we only want to proxy specific sub paths of the overall URL (i.e. /images/a or /images/b) how would this play with the existing rewrite domain settings?
So if we have a config something like this:
Is this going to proxy those 2 paths and then rewrite the rest using local resources or is this not how it works?
The other option is move the shared images to a different domain, but that's what I'm hoping to avoid with this.
Cheers