Domain name

Permalink 1 user found helpful
Hey Guys

So i need some help.

At the moment im pinting my domain with godaddy under the dns host settings to the following

Host Point To
@ "My server ip address"

My server is a lamp server

The problem is when i got to the domain i dont get my website i get my root server where all my websites are in a list.

so when i click on one i get this

Eg
http://www.mydomain.com/folder


But what i want is to go to my domain and get this

eg
http://www.mydomain.ocm
instead of
http://www.mydomain.com/subfolder

 
planist1 replied on at Permalink Reply
planist1
You might want to check your httpd.conf file.
Check out this post on the subject. It might apply in this case.http://stackoverflow.com/questions/5891802/how-do-i-change-the-root...
spooker replied on at Permalink Reply
spooker
That's typically the problem if you don't have the correct setup in place for a <VirtualHost>

As planist1 mentioned, start with your httpd.conf file, make sure that you have virtual hosting enabled with the following line:
NameVirtualHost *:80

Then you'd want to have a <VirtualHost ...></VirtualHost> entry for each site you're going to be serving from that process ... (only valid for non-SSL sites)

If there isn't a <VirtualHost> entry for a particular site that's being requested, the server will respond with the first site defined (this is probably why you are seeing what you're seeing)