Apache2 + Internationalized Domain Names (IDN)

Since I couldn’t find any documentation regarding Apache2-support for Internationalized Domain Names (IDN), I realized that it’s not at all hard to configure.

You can just set the ServerName or ServerAlias-property to the punycode-value of the domain name, i.e. æøå.tld would become xn--5cab8c.tld. A converter is available at VeriSign.
After converting, save the apache2 virtualhost configuration file, (eventually run a2ensite config_file.tld , if you have chosen to config your web sites that way) and run:
apache2ctl graceful

The web server should start serving the web site immediately.

5 thoughts on “Apache2 + Internationalized Domain Names (IDN)

    • I have been reading around
      IDN Info:
      IDN in non punnycode works all the time on safari. inc iphones
      Firefox only works if the domain ends in .cn – any others redirect to punnycode – this is to stop phissing etc…

Skriv et svar

Din e-mail-adresse vil ikke blive offentliggjort. Krævede felter er markeret med *

*

Disse HTML koder og attributter er tilladte: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>