Answer the question
In order to leave comments, you need to log in
Why does localhost open instead of a domain?
Ubuntu server 12.10, apache2
There is a city.domen.ru subdomain, in DNS management Record A indicated the IP address of the server. Set up virtual hosts:
<VirtualHost *:5080>
ServerAdmin [email protected]
DocumentRoot /var/www/city.domen.ru/public_html
ServerName city.domen.ru
ServerAlias www.city.domen.ru
<VirtualHost *:5080>
ServerAdmin [email protected]
DocumentRoot /var/www/crm/public_html
ServerName localhost
Answer the question
In order to leave comments, you need to log in
Comment out the line:
ServerName localhost
restart the web server and try again.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question