Hostname / ip returns website of first user

svenv

New member
Joined
Sep 22, 2013
Messages
1
In stead of showing the 'sharedip' template or /vat/www/html/, the server's hostname 'name.server.com' and ip-address show the website of the first created user on that server. Anyone knows why?
 
It goes by whatever virtual host is listed first in the apache config.

Make sure /etc/httpd/conf/extra/httpd-vhosts.conf is included before all the users ones in /usr/local/directadmin

You could always do:

Code:
cd /usr/local/directadmin/custombuild
./build rewrite_confs

But of course this is only for the main server ip. Other shared ips may act differently.
 
Back
Top