Change directory to bypass error

Fred64

New member
Joined
Feb 8, 2011
Messages
1
Hello,

I using DirectAdmin and installed it successfully. But everytime I want to connect to the server IP, I get this:

Apache is functioning normally

Of course I searched a lot in the web and here, too. The index file in which is this message is written, is in /var/www/html
So when I copy my whole website in /var/www/html then it works!
But the data should be in this directory /home/admin/domains/yourdomain.com/public_html

Is there an important point why the data should be in den second path or can I let them in /var/www/html with out worrying about errors?

Or how can I let the system read out the data from the public_html directory?

King Regards
 
In a shared server environment like DirectAdmin, the different web sites are resolved via their domain names. All the domain names point to a shared IP address. When you connect directly to the IP address, Apache will serve it from the /var/www/html directory. In order for it to serve from /home/admin/domains/yourdomain.com/public_html , you would need to view the site as http://yourdomain.com and not just http://ipaddress .
 
Back
Top