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

Quote:
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.

Quote:
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