Different domains for game server/website/etc...

Posted May 30, 2013 3.1k views
I run a Minecraft server and am trying to get a website working with a different domain, I have a domain, we'll say, so I want the Minecraft server address to be and the website to be and Is there any way to do this with only one droplet? If you need any more information on this let me know, I'm not too experienced with this type of thing. Thanks in advance.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
7 answers
Websites are not related to the minecraft server as they're each listening on a separate port.
You can create an A record so that points to your droplet's IP address.
As for the website, you can configure it as you would normally do.
As I said before, I am really not experienced with this type of thing, right now I have pointing to my droplet, that works fine, but then if I have a site, that domain goes to it, I don't want that, I only want to go to the site, how would I do that? I'm sorry if there is already a tutorial for this, but I can't find it.
@Dan Take a look at:
by Etel Sverdlov
This tutorial shows you how to set up a new directory, how to grant the correct permissions, how to add content to a new page, how to turn on virtual hosting, and how to, if needed, set up local hosts. Virtual Hosts are used to run more than one domain off of a single IP address and allows you to run multiple sites off of a single DigitalOcean droplet. This tutorial describes how to set up virtual hosts with Apache.
Ok, so I have set that up now and it seems to be working, but now another thing that I want to do is have different subdomains. Like I want the normal and then another that is I can't figure out what I need to change/add to make that possible, this is what my VirtualHost config looks like:

DocumentRoot /var/www/
ErrorLog /var/www/
CustomLog /var/www/ common
Did you install zPanel on your server? If so, I recommend using it to create virtualhosts/websites instead of manually editing the configuration files.
Well when I install zpanel it makes it have the domain of is that supposed to happen and can I change it after the installation?
@Dan: I suggest you ask in the official zPanel forums as people there are more experienced with zPanel and are able to help your better: