Server IP shows first VHost

luschache

Verified User
Joined
Mar 1, 2012
Messages
24
After I upgraded to Custombuild 2.0 and installed Apache 2.4 and PHP 5.5 with mod_fcgid, I noticed the "apache is working normally"-page is replaced by the first VirtualHost (alphabetically).

I used to customized this page, so I can show users some more information. Ofcourse I can create a users with username 'aaaaaaa' (don't know if that will work by the way), though I would rather see that de bare IP shows the /var/www/html root again.
 
check your main VH first, and then check your all VH users, if it's set good
 
check your main VH first, and then check your all VH users, if it's set good

I've found the problem. In my httpd-vhosts.conf file there were a couple of problems with my IPv6 address:
- It was not enclosed by brackets,
- It was shortened (the series of zero's was replaced by :: )
- There was no portnumber

After fixing this, everything is working fine again.
 
Back
Top