httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject Re: apache 2.0.47 dumb question
Date Wed, 30 Jul 2003 03:47:28 GMT

On Tue, 29 Jul 2003, jake buchholz wrote:
> one of the things that's struck me as odd is that by going to
> http://localhost/manual, it's responding with...
>
> URI: index.html.de Content-Language: de Content-type: text/html;

> ...instead of realizing that my default language is 'en' and showing me
> /manual/index.html.en

Yes, you need to have something like the configuration attached below
(which is part of the default config in 2.0.47).  I guess is was a mistake
to make this drastic a change to the manual in midstream, but it is done,
so we need to live with it.

AliasMatch ^/manual(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$ "@exp_manualdir@$1"

<Directory "@exp_manualdir@">
    Options Indexes
    AllowOverride None
    Order allow,deny
    Allow from all

    <Files *.html>
        SetHandler type-map
    </Files>

    SetEnvIf Request_URI ^/manual/de/ prefer-language=de
    SetEnvIf Request_URI ^/manual/en/ prefer-language=en
    SetEnvIf Request_URI ^/manual/fr/ prefer-language=fr
    SetEnvIf Request_URI ^/manual/ja/ prefer-language=ja
    SetEnvIf Request_URI ^/manual/ko/ prefer-language=ko
    SetEnvIf Request_URI ^/manual/ru/ prefer-language=ru
    RedirectMatch 301 ^/manual(?:/(de|en|fr|ja|ko|ru)){2,}(/.*)?$ /manual/$1$2
</Directory>


Mime
View raw message