LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-18-2011, 03:08 AM   #1
Morten
LQ Newbie
 
Registered: May 2011
Posts: 5

Rep: Reputation: Disabled
Problem with danish letters ÆØÅ with apache NameVirtualHost


Hi,

I'm experiencing problems with the danish letters ÆØÅ in domain names. If I try to add a domain to my server, it fails.

Setup:
I'm running Debian 6.0 with apache version 2.2.16 and with the newest PHP and MySQL releases. To handle multiple domains I use the in-built apache funtion NameVirtualHost. Each domain has it's own file.

Adding 'domainæøå.dk' to it's own file its fairly simple:
/etc/apache2/sites-available/domainæøå.dk

Content:
<VirtualHost *:80>
ServerName domainæøå.dk
DocumentRoot /var/www/domainæøå.dk/
</VirtualHost>

Issuing the command 'a2ensite domainæøå.dk' results in the following error:

ERROR: No site found matching domainæøå.dk!

Creating the symlink manually doesnt help either:
/etc/apache2/sites-enabled/domainæøå.dk -> /etc/apache2/sites-available/domainæøå.dk

Do you have any ideas what I should do? It works with domains containing only normal letters.

Regards
Morten
 
Old 05-20-2011, 04:34 AM   #2
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
My initial guess would be that something in your locale configuration needs to be adjusted for the proper UTF character set. I was reading something about this recently in the Gentoo configuration documentation and it indicated a few things you needed to do to get applications to work properly with different character sets, though I don't recall the exact details.

Here is a link to their UTF-8 document, which gets into a lot of details about UTF support versus standard ASCII and it might shed some light on the subject. Just substitute your local character set for UTF-8. It also references the Locale guide which has more information, but is more geared towards how to pick the customization and use local currency symbols, etc.
 
Old 05-20-2011, 05:44 AM   #3
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,453

Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
Hi

I set up some sites like that some time ago, and I think I needed to use the ACE name in the Apache config. So you need to convert the name from IDN to ACE format. There are a lot of online converters that can do this, for example this:

http://www.netim.com/domain/tools/idn-converter.php
 
Old 05-20-2011, 08:15 PM   #4
Morten
LQ Newbie
 
Registered: May 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thank you! The ACE name seemed to do the trick. Just had to adjust "ServerName" in apache virtual config. Simple and easy - if you know
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ÆØÅ problem In bluefish nesrail Linux - Software 3 04-20-2009 01:57 PM
Problem with apache and accented letters h725 Linux - Server 3 01-05-2009 02:52 AM
Apache: Allowing IP Access and NameVirtualHost concurrently Swakoo Linux - General 4 08-27-2006 10:46 PM
danish locale problem with æøå TroelsSmit Linux - Newbie 1 09-06-2004 06:06 AM
Java printing danish letters (æøå) Garfi Slackware 1 02-27-2004 10:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration