I have two domains hosted on one server. I'm creating two files in
second.conf. Every file has the same content:
NameVirtualHost * <VirtualHost *> ServerName first.example.com DocumentRoot /home/me/first </VirtualHost>
When it's done I have a conflict. Only the second file works. All requests goes to
/home/me/second. No matter what domain I'm using. How to solve it? What am I doing wrong?
ps. It is very important for me to have many individual files, one per each domain name. And I should be able to easily remove any of them, without affecting others. And I don't want to touch default apache configs.. I think that it's possible to do the same without
VirtualHost, but some other instruction. I just can't remember its name.. :(