I am trying to set up a server with a domain name called "privatinstruktør.dk" but keeps getting redirected to the default "welcome to nginx" page.
I have tried to type in the server_name like this:
server {
listen 80;
server_name privatinstruktør.dk;
location / {
root /var/www/privat;
}
}
but that did not work. So I tried using regular expressions like:
server_name "~^privatinstrukt(.+)r\.dk$";
and
server_name "~^privatinstrukt(.*)r\.dk$";
and even
server_name "~^privat(.*)$";
But all fails and I am redirected to the default page. Does anyone have a hint on how to fix this?
Configure a Unicode domain name using punycode format in nginx:
server_name xn--privatinstruktr-jub.dk;