First thing, make sure your domain is pointing to the correct ip of the server you are using, a simple
ping domain.com would do it but you can aswell use tracert domain.com or traceroute depending from where you are checking it.
After that, locate the file
vhosts.conf those are your webserver configuration files.
vhosts.conf is empty or not, if it is not empty look for DocumentRoot entries and post the content for us by updating your question, if it is empty go to
httpd.conf and look for
<virtualhost entries, if there inst any, it means your webserver is using the server DocumentRoot directory.
Usually the server DocumentRoot directory is
/var/www/htdocs but it may change from installation to installation and from OS to OS.
To verify which is the one you have, inside your httpd.conf look for the entry
DocumentRoot that is not inside any
virtualhost and what is ahead of it is the path to your main root directory.
its better if you make your own VirtualHost for the domain in question, if you have a vhosts.conf file add the bellow cotent to it replacing what is need to your own domain, if you dont have a vhosts.conf add at the end of your httpd.conf file:
CustomLog /home/servername/logs/domain.com_access_log combined
Make sure you have created the directory
/home/servername/logs to hold your log files or that you have it pointed to somewhere you prefer.
Apache webserver works the follow way:
If you have no virtualhosts
configured it will lead to the
server DocumentRoot by either the ip
or the ServerName defined.
If you do have virtualhosts then you
will only hit the server
DocumentRoot when you make use of
your Server's ServerName (which is the domain defined in the ServerName that is outside and before your virtualhosts in your
it will lead you to your first
virtualhost in your config file.
Let's say your first domain is
blabla.com and it is using the
virtual host *:80, it means ANY IPS
that are binded to your webserver
will lead to that virtualhost if the
user has not defined any domain to
access, an example would be the user
accessing your ip instead of the
- If you are always using the domain name to access your domain then it does not matter aslong as you have your virtualhost well configured you will hit the given place you wanted and the files you wanted.