Я следовал этим инструкциям, чтобы настроить поддомены для Apache . Я могу получить доступ к поддомен, используя http: // localhost / test
, хотя я не могу получить к нему доступ через http: //test.localhost
. Как я могу понять последний?
# /etc/apache2/sites-available/test.localhost
# Server name
ServerName test.localhost
# Document root
DocumentRoot /var/www/test/
# Custom log file locations
ErrorLog /var/www/test/logs/error.log
CustomLog /var/www/test/logs/access.log combined