You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Kai Hofmann <ho...@hofmann-int.de> on 1999/05/06 14:09:57 UTC

mod_mime/4358: DefaultLanguage doesn't work within .htaccess

>Number:         4358
>Category:       mod_mime
>Synopsis:       DefaultLanguage doesn't work within .htaccess
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Thu May  6 05:10:01 PDT 1999
>Last-Modified:
>Originator:     hofmann@hofmann-int.de
>Organization:
apache
>Release:        1.3.4
>Environment:
Solaris 2.5 with gcc 2.7.x
>Description:
My provider has not configures language support, but I did it by myself via
the .htaccess file without problems - i.e. AddLanguage etc. works fine!
Now I wanted to add "DefaultLanguage en" - after doing so, I received an error
from the server. As it seems DefaultLanguage and AddLanguage should be within
the same "AllowOverride" group I can not figure out that I have done something wrong.

Here is my .htaccess file:

ErrorDocument 500 /error500.html
AddLanguage de .de
AddLanguage en .en
LanguagePriority en de
DirectoryIndex index
Options +MultiViews

because the english index files are named index.html I wanted to
add DefaultLanguage en
The Server is a virtual host.
>How-To-Repeat:
Hopefully the above given information is enough for a reproduction.
Because I have no direct access to the server configs I can not give you
more - sorry.
>Fix:
Maybe DefaultLanguage is not within the same OverrideGroup as AddLanguage,
or it has been documented as usable within .htaccess, but not correctly
implemented?
>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!         ]