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!

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.