You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Rubén Clérigo <ru...@nroot.info> on 2009/06/15 14:15:20 UTC

[users@httpd] International chars in domain names + Virtualhosts

Hello

I have an apache 2.2 server running on debian with nearly 100 
virtualhosts working without problems. But, I need to host a new name 
which contains an Spanish char (ñ). I have created a virtualhost like 
the rest, but when I try to browse the site y get the fallback 
virtualhost, not the new one. If I change the ServerName in that 
virtualhost to a "standard" one, it works fine.

Has anybody encountered a problem like this one? I know this kind of 
domains do work on other sites (e.g. www.mañana.es) so I would like to 
know how to set up such domains myself.

Thank you in advance.

Best regards.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] International chars in domain names + Virtualhosts

Posted by Davide Bianchi <da...@walterisookeensufferukker.nl>.
Rubén Clérigo wrote:
> Has anybody encountered a problem like this one? I know this kind of
> domains do work on other sites (e.g. www.mañana.es) so I would like to
> know how to set up such domains myself.

While domain names technically have no restrictions on the characters
they use and can include non-ASCII characters, the same is not true for
host names.

Host names are the names most people see and use for things like e-mail
and web browsing. Host names are restricted to a small subset of the
ASCII character set known as LDH, the Letters A–Z in upper and lower
case, Digits 0–9, Hyphen, and the dot to separate LDH-labels; see RFC
3696 section 2 for details.

http://tools.ietf.org/html/rfc3696#section-2

Davide

-- 
someone ignored excellent technical advice and the bovine waste product
hit the rotating air movement device. - technical description on asr

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] International chars in domain names + Virtualhosts

Posted by André Warnier <aw...@ice-sa.com>.
Rubén Clérigo wrote:
> Hello
> 
> I have an apache 2.2 server running on debian with nearly 100 
> virtualhosts working without problems. But, I need to host a new name 
> which contains an Spanish char (ñ). I have created a virtualhost like 
> the rest, but when I try to browse the site y get the fallback 
> virtualhost, not the new one. If I change the ServerName in that 
> virtualhost to a "standard" one, it works fine.
> 
> Has anybody encountered a problem like this one? I know this kind of 
> domains do work on other sites (e.g. www.mañana.es) so I would like to 
> know how to set up such domains myself.
> 
> Thank you in advance.
> 
I have naver tried it myself, but I think you need to use the following 
kind of configuration :
<VirtualHost *:80>
   ServerName xn--faltenbgeleisen-berlin-ylc.de

where the above funny way of writing the domain name corresponds to the 
"PUNYCODE" encoding of the DNS name.
(Which in this case would be "faltenbügeleisen-berlin.de")

I found the above searching Google for "apache +punycode".
I have not really browsed very deep in the answers.

I think you should also check if the browser which you (or your clients) 
are using supports this PUNYCODE properly.  I have seen hints for 
instance that IE6 natively does not.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] International chars in domain names + Virtualhosts

Posted by André Warnier <aw...@ice-sa.com>.
Rubén Clérigo wrote:
> Thanks very much André, this is just what I was looking for. I am afraid 
> it was the first time I read about punycode.
> 
Ole !
De nada, me encanta haber ayudado.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] International chars in domain names + Virtualhosts

Posted by Rubén Clérigo <ru...@nroot.info>.
Thanks very much André, this is just what I was looking for. I am afraid 
it was the first time I read about punycode.


André Warnier escribió:
> By the way, the punycode version of your sample domain below is
> www.xn--maana-pta.es
> I also found this interesting link via Google :
>
> http://www.charset.org/punycode.php
>
> Rubén Clérigo wrote:
>> Hello
>>
>> I have an apache 2.2 server running on debian with nearly 100 
>> virtualhosts working without problems. But, I need to host a new name 
>> which contains an Spanish char (ñ). I have created a virtualhost like 
>> the rest, but when I try to browse the site y get the fallback 
>> virtualhost, not the new one. If I change the ServerName in that 
>> virtualhost to a "standard" one, it works fine.
>>
>> Has anybody encountered a problem like this one? I know this kind of 
>> domains do work on other sites (e.g. www.mañana.es) so I would like 
>> to know how to set up such domains myself.
>>
>> Thank you in advance.
>>
>> Best regards.
>>
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server 
>> Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server 
> Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] International chars in domain names + Virtualhosts

Posted by André Warnier <aw...@ice-sa.com>.
By the way, the punycode version of your sample domain below is
www.xn--maana-pta.es
I also found this interesting link via Google :

http://www.charset.org/punycode.php

Rubén Clérigo wrote:
> Hello
> 
> I have an apache 2.2 server running on debian with nearly 100 
> virtualhosts working without problems. But, I need to host a new name 
> which contains an Spanish char (ñ). I have created a virtualhost like 
> the rest, but when I try to browse the site y get the fallback 
> virtualhost, not the new one. If I change the ServerName in that 
> virtualhost to a "standard" one, it works fine.
> 
> Has anybody encountered a problem like this one? I know this kind of 
> domains do work on other sites (e.g. www.mañana.es) so I would like to 
> know how to set up such domains myself.
> 
> Thank you in advance.
> 
> Best regards.
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org