Some Assistance is required

This may not be the right place for this post but any help would be appreciated.

I currently has a web server running Ubuntu Server at my house. It is hosted a website which was purchased through Godaddy.com and is techinically hosted through godaddy but the DNS records point the @ record and the www record to the IP address of my webserver. Let’s call this one Domain1.com

I have one website up and running fine. I have Webmin and Virtualmin installed on the machine but I think my issue is going to come from DNS.

I am trying to set up another domain (Domain2.com for instance) which will also be hosted through GoDaddy (purchased but GoDaddy’s DNS will route it to the same IP as the other domain) is there any way I can get both domains to run off of the same webserver running from two different root directories?

Thanks in advanced,
-Patrick

I may need to set up a DNS server on the webserver so that I can route correctly. To tell you the truth… I don’t know. I have seen virtual host documentation for Apache and Virtualmin looks like it may do what I need but I would like some info if this could be accomplished and how.

Summary:
Domain1 and Domain2 are two separate websites. I would like to put them both on the same machine and have the machine serve them out of two different root directories. I have webmin installed on the webserver but the DNS is hosted through godaddy using thier free service for both domains. How would I get the webserver (running ubuntu server) to differentiate between the requests and route them to the correct root directory?

This is an apache question not a VM one per se.

But VM will setup apache correctly to serve multiple domains using 1 IP however you will not be allowed to use SSL at all since SSL sites require private IP’s and can’t share IP’s.

I may need to set up a DNS server on the webserver so that I can route correctly. To tell you the truth... I don't know. I have seen virtual host documentation for Apache and Virtualmin looks like it may do what I need but I would like some info if this could be accomplished and how.

DNS and routing are unrelated.

Domain1 and Domain2 are two separate websites. I would like to put them both on the same machine and have the machine serve them out of two different root directories. I have webmin installed on the webserver but the DNS is hosted through godaddy using thier free service for both domains. How would I get the webserver (running ubuntu server) to differentiate between the requests and route them to the correct root directory?

This is just name-based virtual hosting. It’s been standard practice for as long as any of us have been using the Internet (OK, maybe not really true…I remember when name-based virtual hosts were first patched into early webservers…but it’s been a LONG time). Virtualmin sets up name-based virtual hosts by default, and Apache pretty much naturally configures with name-based virtual hosts without too much effort. As long as you configure the DNS records to point to the right IP (and that IP actually reaches your server), all will be fine. The hard parts of this kind of configuration have nothing to do with name-based hosts, and I expect we’ll see you again with those harder questions if they come up. :wink: