Good day time. Set up a redirect from a domain name from www to a domain name without www.
server { listen 80; server_name www.someserver.ru; rewrite ^/(.*) http://someserver.ru$1 permanent; } I added the same block to the configuration file, but with a Russian domain name:
server { listen 80; server_name мой-сервер.рф; rewrite ^/(.*) http://someserver.ru$1 permanent; } The redirect from the domain name www.someserver.ru works, and from the domain name my-server. Rf goes to the nginx test page. I also tried using the Unicode line instead of my-server.rf in the config, but the result is the same. How can I fix the problem?
Regards, maxspb.