View Single Post
Old 23rd July 2012, 02:47
Unfaiir Unfaiir is offline
HowtoForge Supporter
Join Date: Jul 2012
Location: Orange County, CA, USA
Posts: 43
Thanks: 14
Thanked 4 Times in 2 Posts

Originally Posted by MaddinXx View Post
If you created name-based virtual hosts it should not point you to one of those sites.

However, if you created IP based sites it takes you to the one which has the IP address set.
I just have all of my sites created with *:80, its just easier that way and assigning IPs was giving me issues with sites loading.

Originally Posted by MaddinXx View Post
The default site would be /etc/apache/sites-available/default and should point you to /var/www/.
I don't have a default in my /etc/httpd/conf/sites-available, just the files created by ISPConfig 3 in there.

I can always resort to checking the %{HTTP_HOST} in a RewriteCond at the site that the IP leads to, but that doesn't seem very elegant. There must be a better way.
Reply With Quote