Hot topic "Russian-speaking domains on apache +nginx"

Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
There is a problem, which is that the hosting control panel adopts Russian-language domains, but in the settings Virt. domains Apache and nginx full neponyatka.
How to solve?
Just the Russian names, Apache does not accept, the reason for this is unclear.
by | 34 views

3 Answers

0 like 0 dislike
0 like 0 dislike
Convert via libidn and forget that the Russian-speaking domains exist outside the browser (and even there not always)
idn --quiet -a "domain.of the Russian Federation"
(the quotes only normal — parser)
0 like 0 dislike
punycode Converter convert vpnsc.RF xn--b1amgljn.xn--p1ai

in /etc/apache2/sites-available create a conference. file xn--b1amgljn.xn--p1ai.conf
"VirtualHost *:80"
ServerAdmin webmaster@localhost
ServerName xn--b1amgljn.xn--p1ai
ServerAlias www.xn--b1amgljn.xn--p1ai
DocumentRoot /home/xn--b1amgljn.xn--p1ai/www/
"Directory /home/xn--b1amgljn.xn--p1ai/www/"
Options None
AllowOverride All
Order allow,deny
allow from all

ErrorLog /home/xn--b1amgljn.xn--p1ai/error.log

LogLevel warn

CustomLog /home/xn--b1amgljn.xn--p1ai/access.log combined


then a2ensite xn--b1amgljn.xn--p1ai
Important! The name of the directory with the files of the site xn--b1amgljn.xn--p1ai

Related questions

0 like 0 dislike
7 answers
0 like 0 dislike
2 answers
0 like 0 dislike
4 answers
0 like 0 dislike
4 answers
110,608 questions
257,186 answers
36,565 users