Question

How do I host a site? How do I host multiple sites via a subdomain?

Hello,

As you might notice because of my question I am a complete beginner in running servers, I have done the basic setup for the server, have installed the LAMP stack, and added my domain name to the droplet. Though I am not sure where to go from now and how to actually upload and host my site on the droplet, I tried Filezilla but to no success. Also I would like to host two sites on the same droplet, I have made a subdomain but don’t have a clue on how I go about accessing it and hosting the files on the subdomain, so it is sort of a 2 in 1 question. I would appreciate any tips and information! Running Ubuntu if it is of any importance!

Thanks!

Subscribe
Share

Hello i am begginer too, i found this guide, this is a fantastic guide for me, now i have a lot of domains and subdomains : http://jarroba.com/configurar-un-apache-en-un-servidor-linux-digitalocean-con-dominio-y-subdominios-partei/

So easy. I am spahish, the guide is in spanish


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Hello,

Settings up a website or multiple websites is easy to do with a few services. You need to

  • Make a webservice (Apache, Nginx etc.)
  • Create your VHOST files (These are the configuration files for your webservice so it knows how to handle certain domains/subdomains and shows the site)
  • Create your website directories (/var/www is the default directory where you setup all your sites)
  • Run your webservice, and check your site

All of this is explained in this tutorial. Please read it closely and I think you will understand. If not and you still got any question, don’t hesistate to ask them.