You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Lee Fisher <fi...@gmail.com> on 2017/03/13 22:39:30 UTC

[users@httpd] content negotiation default language/file?

Hi,
On my current site with 2.2.31 (www.vishay.com)
I have 3 languages,
English index.html
ja index.ja.html
zh index.zh.html

I am trying to set this up similarly on my new server, 2.4.16.
I can get ja and zh to work, but I can't get it to know that index.html is
english.
Is this still possible or I must name everything index.en.html?
Is there an option I am missing?
Thanks,
Lee

Re: [users@httpd] content negotiation default language/file?

Posted by Lee Fisher <fi...@gmail.com>.
I was missing DefaultLanguage!  That's what I was looking for.
I think adding
        DefaultLanguage en
        DirectoryIndex index

in Directory solved it.  I'll keep testing.

On Tue, Mar 14, 2017 at 10:55 AM Lee Fisher <fi...@gmail.com> wrote:

> AddLanguage en .html
> works sometimes but still not consistently.
>
> On Tue, Mar 14, 2017 at 10:52 AM Lee Fisher <fi...@gmail.com> wrote:
>
> Seeing it in apaste triggered something in my brain.
> If I change en to
> AddLanguage en .html
> AddLanguage zh .zh
> AddLanguage ja .ja
>
> It seems to work.
> Is this valid?
> Thanks,
> Lee
>
> On Tue, Mar 14, 2017 at 10:50 AM Lee Fisher <fi...@gmail.com> wrote:
>
> Hi Luca,
> Thanks for response.
> Please see example here
> http://apaste.info/sRqr4
>
>
> On Tue, Mar 14, 2017 at 3:09 AM Luca Toscano <to...@gmail.com>
> wrote:
>
> Hi!
>
> 2017-03-13 23:39 GMT+01:00 Lee Fisher <fi...@gmail.com>:
>
> Hi,
> On my current site with 2.2.31 (www.vishay.com)
> I have 3 languages,
> English index.html
> ja index.ja.html
> zh index.zh.html
>
> I am trying to set this up similarly on my new server, 2.4.16.
> I can get ja and zh to work, but I can't get it to know that index.html is
> english.
> Is this still possible or I must name everything index.en.html?
> Is there an option I am missing?
>
>
> Would it be possible for you to share the config that doesn't work in
> http://apaste.info ?
>
> Luca
>
>

Re: [users@httpd] content negotiation default language/file?

Posted by Lee Fisher <fi...@gmail.com>.
AddLanguage en .html
works sometimes but still not consistently.

On Tue, Mar 14, 2017 at 10:52 AM Lee Fisher <fi...@gmail.com> wrote:

> Seeing it in apaste triggered something in my brain.
> If I change en to
> AddLanguage en .html
> AddLanguage zh .zh
> AddLanguage ja .ja
>
> It seems to work.
> Is this valid?
> Thanks,
> Lee
>
> On Tue, Mar 14, 2017 at 10:50 AM Lee Fisher <fi...@gmail.com> wrote:
>
> Hi Luca,
> Thanks for response.
> Please see example here
> http://apaste.info/sRqr4
>
>
> On Tue, Mar 14, 2017 at 3:09 AM Luca Toscano <to...@gmail.com>
> wrote:
>
> Hi!
>
> 2017-03-13 23:39 GMT+01:00 Lee Fisher <fi...@gmail.com>:
>
> Hi,
> On my current site with 2.2.31 (www.vishay.com)
> I have 3 languages,
> English index.html
> ja index.ja.html
> zh index.zh.html
>
> I am trying to set this up similarly on my new server, 2.4.16.
> I can get ja and zh to work, but I can't get it to know that index.html is
> english.
> Is this still possible or I must name everything index.en.html?
> Is there an option I am missing?
>
>
> Would it be possible for you to share the config that doesn't work in
> http://apaste.info ?
>
> Luca
>
>

Re: [users@httpd] content negotiation default language/file?

Posted by Lee Fisher <fi...@gmail.com>.
Seeing it in apaste triggered something in my brain.
If I change en to
AddLanguage en .html
AddLanguage zh .zh
AddLanguage ja .ja

It seems to work.
Is this valid?
Thanks,
Lee

On Tue, Mar 14, 2017 at 10:50 AM Lee Fisher <fi...@gmail.com> wrote:

> Hi Luca,
> Thanks for response.
> Please see example here
> http://apaste.info/sRqr4
>
>
> On Tue, Mar 14, 2017 at 3:09 AM Luca Toscano <to...@gmail.com>
> wrote:
>
> Hi!
>
> 2017-03-13 23:39 GMT+01:00 Lee Fisher <fi...@gmail.com>:
>
> Hi,
> On my current site with 2.2.31 (www.vishay.com)
> I have 3 languages,
> English index.html
> ja index.ja.html
> zh index.zh.html
>
> I am trying to set this up similarly on my new server, 2.4.16.
> I can get ja and zh to work, but I can't get it to know that index.html is
> english.
> Is this still possible or I must name everything index.en.html?
> Is there an option I am missing?
>
>
> Would it be possible for you to share the config that doesn't work in
> http://apaste.info ?
>
> Luca
>
>

Re: [users@httpd] content negotiation default language/file?

Posted by Lee Fisher <fi...@gmail.com>.
Hi Luca,
Thanks for response.
Please see example here
http://apaste.info/sRqr4


On Tue, Mar 14, 2017 at 3:09 AM Luca Toscano <to...@gmail.com> wrote:

> Hi!
>
> 2017-03-13 23:39 GMT+01:00 Lee Fisher <fi...@gmail.com>:
>
> Hi,
> On my current site with 2.2.31 (www.vishay.com)
> I have 3 languages,
> English index.html
> ja index.ja.html
> zh index.zh.html
>
> I am trying to set this up similarly on my new server, 2.4.16.
> I can get ja and zh to work, but I can't get it to know that index.html is
> english.
> Is this still possible or I must name everything index.en.html?
> Is there an option I am missing?
>
>
> Would it be possible for you to share the config that doesn't work in
> http://apaste.info ?
>
> Luca
>

Re: [users@httpd] content negotiation default language/file?

Posted by Luca Toscano <to...@gmail.com>.
Hi!

2017-03-13 23:39 GMT+01:00 Lee Fisher <fi...@gmail.com>:

> Hi,
> On my current site with 2.2.31 (www.vishay.com)
> I have 3 languages,
> English index.html
> ja index.ja.html
> zh index.zh.html
>
> I am trying to set this up similarly on my new server, 2.4.16.
> I can get ja and zh to work, but I can't get it to know that index.html is
> english.
> Is this still possible or I must name everything index.en.html?
> Is there an option I am missing?
>
>
Would it be possible for you to share the config that doesn't work in
http://apaste.info ?

Luca