PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.info.servers.unix > Apache 1.3.33: MultiViews content negotiation returns incorrect page
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.info.servers.unix Web servers for UNIX platforms.

Apache 1.3.33: MultiViews content negotiation returns incorrect page

Réponse
 
LinkBack Outils de la discussion
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
Vieux 21/03/2005, 11h55   #2
Jorn Mineur
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache 1.3.33: MultiViews content negotiation returns incorrect page

On Sun, 20 Mar 2005 23:53:25 +0100, Alan J. Flavell wrote
(in message <Pine.LNX.4.61.0503202227440.13474@ppepc56.ph.gla. ac.uk>):

> On Sun, 20 Mar 2005, Jorn Mineur wrote:


>> Auto-negotiation works fine for all these languages if 'index' is
>> requested, except for .zh (Chinese).


> I honestly don't know the answer to your problem, but let's at least
> explore some possibilities...


Thank you very much, Alan, for these suggestions.

<blush>
I have spent the whole morning experimenting, then, after realizing that
apache was disregarding *any* changes I made to httpd.conf, found the rather
trivial solution: 'apachectl restart' instead of 'apache reload'.
</blush>

-- Jorn Mineur <jorn@mineur.net>

  Réponse avec citation
Vieux 21/03/2005, 12h53   #3
Alan J. Flavell
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache 1.3.33: MultiViews content negotiation returns incorrectpage

On Mon, 21 Mar 2005, Jorn Mineur wrote:

> <blush>
> I have spent the whole morning experimenting, then, after realizing
> that apache was disregarding *any* changes I made to httpd.conf,
> found the rather trivial solution: 'apachectl restart' instead of
> 'apache reload'.
> </blush>


Don't worry, I've made equivalent mistakes myself. Thanks for sharing
the solution, anyway - it's always more satisfying to see that a
problem has been resolved - no matter what the explanation may have
turned out to be.

It rather supports my contention that .htaccess is a better place for
experimenting. Though one might need to clear the browser cache
afterwards.
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h51.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08025 seconds with 11 queries