You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Rainer Scherg <Ra...@rexroth.de> on 1999/01/25 14:49:04 UTC
mod_negotiation/3760: MultiViews brings "Not Acceptable"
>Number: 3760
>Category: mod_negotiation
>Synopsis: MultiViews brings "Not Acceptable"
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apache
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Mon Jan 25 05:50:00 PST 1999
>Last-Modified:
>Originator: Rainer.Scherg@rexroth.de
>Organization:
apache
>Release: 1.3.4
>Environment:
Solrais 2.6, gcc 2.?
>Description:
1. MultiViews is a great feature of apache!
2. but there is a small problem..
The problem in short description:
- server has multiviews switched on (an it's working fine)
- a directory has e.g. two files:
doc.htm.de
doc.htm.en
- Server config is set as follows:
AddLanguage de .de
AddLanguage en .en
... etc.
LanguagePriority de en fr se
- requesting "doc.htm" returns:
>How-To-Repeat:
Replace Accept-Language in Browser by one rarely used language...
>Fix:
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <ap...@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED. This is not done]
[automatically because of the potential for mail loops. ]
[If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request ]
[from a developer. ]
[Reply only with text; DO NOT SEND ATTACHMENTS! ]
>>Not Acceptable
>>An appropriate representation of the requested resource doc.htm could not be found on this server.
>>Available variants:
>> doc.htm.de , type text/html, language de
>> doc.htm.en , type text/html, language en
Important:
This Message will only be returned, if the Accept-Language-Header
sent by the browser doesn't contain any known Add-Type language
There is no Accept-Lang-Header info apache returns the docs acording to
the LangPriotity.
e.g. Accept: en,de ==> works fine returns "en"
Accept: <empty> ==> according LangPriority
Accept: "af" ==> Yek! Not Acceptable Error
If this ("Not Acceptable") is a feature, there should be a switch, to
prefere LanguagePriority in any case - instead of sending a "Not Acceptable".
-- cu Rainer