A
A
Alexander Petrov2018-03-28 22:12:17
Nginx
Alexander Petrov, 2018-03-28 22:12:17

How to set up www.domain-in-cyrillic.rf on nginx?

Question
There is a domain in Cyrillic. If I enter just a domain in the address, it opens, but if I add www, it does not work.
This is what the settings look like now.

server {
    listen 80;
    server_name xn----ctbec4a6aag1a.xn--p1ai;
    <...тут остальная часть конфига...>
}

I tried to do this: www.xn----ctbec4a6aag1a.xn--p1ai Googled, tried to make different options from Google. BUT nothing wants to work, the domain stubbornly opens only without www.
How to make www work too?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Karabanov, 2018-03-28
@Mirkom63

server {
    listen 80;
    server_name xn----ctbec4a6aag1a.xn--p1ai  www.xn----ctbec4a6aag1a.xn--p1ai;
    <...тут остальная часть конфига...>
}

Well, do not forget to add the A record for www.xn----ctbec4a6aag1a.xn--p1ai to the DNS zone config.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question