apache / incubator-pagespeed-mod

Apache module for rewriting web pages to reduce latency and bandwidth.
http://modpagespeed.com
Apache License 2.0
696 stars 158 forks source link

Mod_Pagespeed is only looking on ServerName not on Domain #1176

Open sirshurf opened 8 years ago

sirshurf commented 8 years ago

I have a link: http://en.example.com/s/nowy_program_utorrent/

But in the log of Apache I see only this link http://example.com/s/nowy_program_utorrent/

This means that mod_pagespeed only looks at the ServerName of the VHost and not on the "Aliases" Domains... I have: UseCanonicalName on

The problem is I am using this "subdomain" for language settings.

Any ideas how this can work for me?

morlovich commented 8 years ago

Do you need UseCanonicalName On for any other purposes? This exactly tells apache to report the VHost's primary name to anyone that asks (which includes us), rather than what the client actually sent in the Host: header

sirshurf commented 8 years ago

Yes I do... I need it on for Map methods I am using ....

:(

jeffkaufman commented 8 years ago

@morlovich In nginx we always just use what's in the host header; should we do that here too?

sirshurf commented 8 years ago

If you will do, this will defiantly break my version :)

I have switched no the NGINX just for this.