up vote 0 down vote favorite
share [g+] share [fb]

I have added two different virtual hosts on Apache:

<VirtualHost *:80>

DocumentRoot /home/domain1/www

ServerName domain1.kz

ServerAlias www.domain1.kz

</VirtualHost *:80>

<VirtualHost *:80>

DocumentRoot /home/domain2/www

ServerName domain2.kz

ServerAlias domain2.kz

</VirtualHost *:80>

When I visit domain2.kz, it shows the content of first virtual host, even if their DocumentRoot are different? Why?

link|improve this question
feedback

1 Answer

Well, for a start, your closing tags aren't, so you might want to fix those up and try again. They should look like </VirtualHost>, without the listen spec.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown