Not sure if this has already been addressed in the forum, if so just point me in that direction.
Here’s my issue, if I type in the shared IP address for my server, it resolves to one of the sites sharing that IP. This seems wrong to me. How does it choose which site to bring up that is sharing that IP? Does it just simply bring up the first one in the list?
Either way, I should be able to choose where this IP resolves (like our site on this same server since we’re hosting the sites) when sent via a browser or it should simply pull up a default Interworx page. My other servers run Plesk and I know that’s what happens if you try to visit the shared IP address on them. You can’t pull up one of the sites that way.
Apache reads the conf files in alphabetical order, and also matches vhost blocks in alphabetical order. What this means is that when someone goes to a shared IP, Apache will see that the first virtualhost block is a match, and serve that site up. You can do something like this to trick Apache into making mysite.com the first vhost read:
cd /etc/httpd/conf.d
ln -s mysite.com.conf 000000.conf