Mobile app version of vmapp.org
Login or Join
Murray432

: The concept of virtual host and DNS I have a dedicated server and a mydomain.com (bought from a hosting company). I want to host a website from my dedicated server with the domain mydomain.com

@Murray432

Posted in: #Apache #Dns

I have a dedicated server and a mydomain.com (bought from a hosting company). I want to host a website from my dedicated server with the domain mydomain.com i.e. when I enter mydomain.com from browser it should point to the IP(let's say X.X.X.X) of dedicated server(and a particular folder inside it). I have some following queries:

In Server


I know I need to edit some of the files (like: host or hostname file) in the server but I do not know what exact file I need to edit.
How to add a Site enable or Site available in apache2 ?


In Hosting Company control Panel


Which records to add (A or cname or anyother)?
Where Should I add DNS(in dedicated server section or domain name section)?
How it is going to affect the behaviour of the domain?


in short the question is: How the virtual host works & how to add DNS?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Murray432

1 Comments

Sorted by latest first Latest Oldest Best

 

@Barnes591

Firstly setup a A record to the IP address of your server. You need not add any DNS entries.

You then have to set up Virtual Hosts in Apache, refer here or here. While setting up virtual hosts, select the folder as per your needs.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme