Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Kyle Damken
Kyle Damken
10,633 Points

Do you need to buy web hosting for each new site that you make?

I followed this tutorial/lesson (https://teamtreehouse.com/library/how-to-make-a-website/sharing-a-website/upload-the-website) for the first project I made, and it went great. However, I'm almost done with my second website and I'm a bit confused about hosting. I have it via https://webhostingforstudents.com, do I need to buy more web hosting for my second website? Or, can I use the existing hosting I bought to host both my first site and my second site at the same time?

If so, what would the process be like for that? Would I use the same nameservers from the webhostingforstudents email for my second site?

Any help would be greatly appreciated.

4 Answers

Kevin Korte
Kevin Korte
28,149 Points

An option you can look at is if web hosting for students allow you to do add-on domains. If so, you're second site's domain can be an addon of your hosting account. This will allow the second site to function exactly as if it has it's own hosting plan, but both sites and domains will share their hosting.

The downside is they both share resources too, so if one site gets a lot of traffic, you could crash the server, and both sites would go down.

Tenzin Nyima
Tenzin Nyima
2,232 Points

I have not been through 'how to make website' tutorial and am not familiar with webhostingforstudents.com.

But I highly recommend hosting your sites on heroku (especially for kind of projects you do). Check out heroku.com and everything should be straight forward. I am pretty sure treehouse has tutorials floating around on how to deploy your app on heroku. Heroku is free and you can host number of websites without spending a penny.

Kyle Damken
Kyle Damken
10,633 Points

Thanks for the help. I managed to figure it out with the add on domain. For anyone else wondering, you do use the same nameserver 1 and nameserver 2 you used for the first domain. Then you follow this guide: https://www.siteground.com/tutorials/cpanel/addon_domains.htm

You'll see two new folders in the www folder in cyberduck: domain.com and www.domain.com. www.domain.com is the one you want to put your files in.