MapOriginDomain for multiple domains

37 views
Skip to first unread message

Kevin Nguyen

unread,
Sep 11, 2017, 10:21:28 AM9/11/17
to mod-pagespeed-discuss
I have multiple domains with http2. I am wondering if i can load map origin domains for them like this:

pagespeed MapOriginDomain "http://localhost" "https://domain1.com";
pagespeed MapOriginDomain "http://localhost" "https://domain2.com";
pagespeed MapOriginDomain "http://localhost" "https://domain3.com";
pagespeed MapOriginDomain "http://localhost" "https://domain4.com";


and so on.


Joshua Marantz

unread,
Sep 11, 2017, 10:35:09 AM9/11/17
to mod-pagespeed-discuss
Sure, you can also do:

or even

  pagespeed MapOriginDomain "http://localhost" "https://domain?.com";

or

  pagespeed MapOriginDomain "http://localhost" "https://domain*.com";

if the patterns of your domains allow that.  * and ?, not regexps for this one.

--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/ef7f66e8-58b7-4178-8da7-7bce9e665700%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kevin Nguyen

unread,
Sep 11, 2017, 10:39:12 AM9/11/17
to mod-pagespeed-discuss
Thank you. Won't that mess with any single domain? 

Joshua Marantz

unread,
Sep 11, 2017, 10:41:00 AM9/11/17
to mod-pagespeed-discuss
I'm not following you.  Can you give an example of what the forms I give might mess with?


On Mon, Sep 11, 2017 at 10:39 AM, Kevin Nguyen <kevinng...@gmail.com> wrote:
Thank you. Won't that mess with any single domain? 

On Monday, September 11, 2017 at 10:35:09 AM UTC-4, jmarantz wrote:
Sure, you can also do:

or even

  pagespeed MapOriginDomain "http://localhost" "https://domain?.com";

or

  pagespeed MapOriginDomain "http://localhost" "https://domain*.com";

if the patterns of your domains allow that.  * and ?, not regexps for this one.
On Mon, Sep 11, 2017 at 10:21 AM, Kevin Nguyen <kevinng...@gmail.com> wrote:
I have multiple domains with http2. I am wondering if i can load map origin domains for them like this:

pagespeed MapOriginDomain "http://localhost" "https://domain1.com";
pagespeed MapOriginDomain "http://localhost" "https://domain2.com";
pagespeed MapOriginDomain "http://localhost" "https://domain3.com";
pagespeed MapOriginDomain "http://localhost" "https://domain4.com";


and so on.


--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsubscri...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.

Kevin Nguyen

unread,
Sep 11, 2017, 10:42:45 AM9/11/17
to mod-pagespeed-discuss
Like CSS or javascript files. Because each domain has its own files. 



On Monday, September 11, 2017 at 10:41:00 AM UTC-4, jmarantz wrote:
I'm not following you.  Can you give an example of what the forms I give might mess with?

On Mon, Sep 11, 2017 at 10:39 AM, Kevin Nguyen <kevinng...@gmail.com> wrote:
Thank you. Won't that mess with any single domain? 

On Monday, September 11, 2017 at 10:35:09 AM UTC-4, jmarantz wrote:
Sure, you can also do:

or even

  pagespeed MapOriginDomain "http://localhost" "https://domain?.com";

or

  pagespeed MapOriginDomain "http://localhost" "https://domain*.com";

if the patterns of your domains allow that.  * and ?, not regexps for this one.
On Mon, Sep 11, 2017 at 10:21 AM, Kevin Nguyen <kevinng...@gmail.com> wrote:
I have multiple domains with http2. I am wondering if i can load map origin domains for them like this:

pagespeed MapOriginDomain "http://localhost" "https://domain1.com";
pagespeed MapOriginDomain "http://localhost" "https://domain2.com";
pagespeed MapOriginDomain "http://localhost" "https://domain3.com";
pagespeed MapOriginDomain "http://localhost" "https://domain4.com";


and so on.


--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/ef7f66e8-58b7-4178-8da7-7bce9e665700%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Joshua Marantz

unread,
Sep 11, 2017, 10:46:42 AM9/11/17
to mod-pagespeed-discuss
I'm still not sure what you are concerned with.  Can you take a look at https://www.modpagespeed.com/doc/domains#mapping_origin and see if that answers your question?


On Mon, Sep 11, 2017 at 10:42 AM, Kevin Nguyen <kevinng...@gmail.com> wrote:
Like CSS or javascript files. Because each domain has its own files. 



On Monday, September 11, 2017 at 10:41:00 AM UTC-4, jmarantz wrote:
I'm not following you.  Can you give an example of what the forms I give might mess with?

On Mon, Sep 11, 2017 at 10:39 AM, Kevin Nguyen <kevinng...@gmail.com> wrote:
Thank you. Won't that mess with any single domain? 

On Monday, September 11, 2017 at 10:35:09 AM UTC-4, jmarantz wrote:
Sure, you can also do:

or even

  pagespeed MapOriginDomain "http://localhost" "https://domain?.com";

or

  pagespeed MapOriginDomain "http://localhost" "https://domain*.com";

if the patterns of your domains allow that.  * and ?, not regexps for this one.
On Mon, Sep 11, 2017 at 10:21 AM, Kevin Nguyen <kevinng...@gmail.com> wrote:
I have multiple domains with http2. I am wondering if i can load map origin domains for them like this:

pagespeed MapOriginDomain "http://localhost" "https://domain1.com";
pagespeed MapOriginDomain "http://localhost" "https://domain2.com";
pagespeed MapOriginDomain "http://localhost" "https://domain3.com";
pagespeed MapOriginDomain "http://localhost" "https://domain4.com";


and so on.


--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsubscri...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsubscri...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.

Kevin Nguyen

unread,
Sep 11, 2017, 11:18:41 AM9/11/17
to mod-pagespeed-discuss
I'm sorry for making you confused.

I was concerned that http://localhost is mapped to all domains

When customer visit https://domain2.com, does pagespeed know that is https://domain2.com (not https://domain1.com, https://domain3.com or https://domain4.com) ?
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.

Joshua Marantz

unread,
Sep 11, 2017, 11:22:12 AM9/11/17
to mod-pagespeed-discuss
Yes, this will be no problem.  This directive helps PageSpeed fetch resources from the origin, and it includes the original hostname as Host request header, which helps the origin server find the correct host config.

There are separate directives for rewriting and sharding domains.

To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsubscri...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsubscri...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsubscri...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.

Kevin Nguyen

unread,
Sep 11, 2017, 12:07:02 PM9/11/17
to mod-pagespeed-discuss
Thank you for clarifying it.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages