domains pointing to /var/www/html and not the user's home

MtK

Verified User
Joined
Aug 2, 2007
Messages
405
Hey,
I've just finished a fresh installation of DA, and I can't get domains to point to their correct home. they all point to /var/www/html.

I've checked httpd.conf and it has a reference for the directadmin-vhosts.conf
and in that file there is a reference to the user's httpd.conf.

:confused:
 
both apache and server were restart/rebooted, so it's not that.

I've set my computer's hosts file to point the domain in question (the domain inside the client's account) to the server's IP.
(also set the DNS to point directly to that server just for a brief test)
 
Last edited:
Hello,

Create:
/var/www/html/info.php

and add the code into it:
Code:
<?php phpinfo(); ?>
then view the domain.com/info.php to see what the connecting IP address is. (_SERVER["SERVER_ADDR"])

If you're on a LAN, then the setup will need to be changed such that the domain is on the IP that the connection arrives on. (but the dns would remain the same)

John
 
Hello,

Create:
/var/www/html/info.php

and add the code into it:
Code:
<?php phpinfo(); ?>
then view the domain.com/info.php to see what the connecting IP address is. (_SERVER["SERVER_ADDR"])

If you're on a LAN, then the setup will need to be changed such that the domain is on the IP that the connection arrives on. (but the dns would remain the same)

John

that would be a little impossible since I can't use domain.com for anything since the server is pointing to /var/www/html anyway...
 
That's why we're creating the info.php in /var/www/html.
We're using the fact that we know the domain is pointing to /var/www/html (when it shouldn't be) so we can view the info.php.

For example, when you view domain.com, are you seeing "Apache is functioning normally" ? This is in /var/www/html.

John
 
yes, I understood the "put info.php" part.


anyway, the problem was that the Public IP set for the domains was not the one receiving the incoming request so apache sent it to its default place.
problem fixed now, thanks!
 
Back
Top