Community Supporter?
OMG!I am geek
Gender:
Posts: 56
364 credits Members referred : 0
Schwa?
« on: Jan 14, 2008, 04:27:47 AM »
So, in our error logs, we keep getting this error from time to time. (of course I edited it ) [Wed Jan 02 10:07:05 2008] [error] [client xx.xx.xx.xx] no acceptable variant: /usr/local/apachewi/htdocs/LIVE/IA/www/css/compress, referer: http://www.websiteia.com/
We do need to keep on multiviews for some legacy support (I hate the idea... but their budget isn't my budget... so you do what you have to do).
At any rate, so I did some research on this and it looks like its an issue when a config has multiviews on, and the user agent sends a language that is not in the language list. However, we should have a fall back situation which we can force a language back on them... like 'en'.
At any rate, here is an excerpt from our config on this server:
# # LanguagePriority allows you to give precedence to some languages # in case of a tie during content negotiation. # # Just list the languages in decreasing order of preference. We have # more or less alphabetized them here. You probably want to change this. # LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW
# # ForceLanguagePriority allows you to serve a result page rather than # MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback) # [in case no accepted languages matched the available variants] # ForceLanguagePriority Prefer Fallback
Now, I think the issue is that we're using both Prefer and Fallback - we should only be using one... right? But I can't seem to get this definitively in any document (it doesn't say that you can't explicitly have both...)
I don't have access to or permission to modify this server - so I have to prove my solution to the admins anyways...
So any concrete pointers? (Anyone who points me to the apache manual entry for forcelanguagepriority without saying anything intelligent will just garner my wishes of voodoo dolls hahah)
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 7824
39879 credits Members referred : 3
« Reply #1 on: Jan 15, 2008, 07:54:18 AM »
What version of Apache you are using?
I use 2.0.59 with the same configuration and have no problems....
Community Supporter?
OMG!I am geek
Gender:
Posts: 56
364 credits Members referred : 0
Schwa?
« Reply #2 on: Jan 21, 2008, 04:21:46 AM »
2.0.58 Can you make a request with a language thats not in your list of languages and not get that message? How did you verify that it works correctly?
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=7522