Afficher un message
Vieux 20/03/2005, 22h03   #1
Jorn Mineur
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Apache 1.3.33: MultiViews content negotiation returns incorrect page

I'm experiencing a strange problem with MultiViews on Apache - is
greatly appreciated!


Configuration: Apache 1.3.33 on Debian Linux / P4


Description:

The directory contains PHP-scripts in different languages:

index.php.en
index.php.zh
index.php.fr
index.php.de
index.php.nl

Auto-negotiation works fine for all these languages if 'index' is requested,
except for .zh (Chinese). So even if 'zh' has the highest q-factor in the
HTTP_ACCEPT_LANGUAGE-string, the second match is returned instead of the
first, 'zh'.

In other words, if 'zh' has the highest q-factor and 'en' the second-highest
in the request URI, then 'index.php.en' is returned instead of
'index.php.zh'.

Does anybody have a clue of what is going on here?

- Yes, I did 'AddLanguage zh .zh' in httpd.conf;
- Yes, I did 'httpd reload' after that;
- Yes, I tried all sorts of variations with documents and .conf-settings like
'zh-CN', 'zh-HK', 'zh-TW' etcetera.


Again, is greatly appreciated. Thanks!


-- Jorn Mineur <jorn@mineur.net>

  Réponse avec citation
 
Page generated in 0,04595 seconds with 9 queries