MapProxyDomain missing support for optional rewrite_domain argument (CDN support) #183

jonathandietz opened this Issue Mar 11, 2013 · 2 comments


None yet
2 participants

It seems the pagespeed library being used by nginx is slightly behind the apache version.

MapProxyDomain is missing support for the optional, third argument which sets the rewrite domain. This is needed when trying to optimize resources from an external resource such as S3 and then serve them from a CDN.

More Info:

If the optional rewrite_domain/subdir argument is supplied then optimized resources will be rewritten to that location. This is useful for rewriting optimized resources proxied from an external origin to a CDN.

ModPagespeedMapProxyDomain target_domain/subdir origin_domain/subdir [rewrite_domain/subdir]
(shows the missing to_domain_name support)


jeffkaufman commented Mar 11, 2013

Yes this is missing, and yes it's because we're using an old version of the pagespeed library. Getting ngx_pagespeed onto a current pagespeed version is one of my goals for the week, which should fix this problem. I'll be sure to test that MapProxyDomain works with both two and three arguments after we update.


jeffkaufman commented Apr 17, 2013

The three argument (cdn supporting) version of MapProxyDomain is now in ngx_pagespeed; let me know if you run into any issues with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment