Hi, im setting up a website that will initially start out small but parts of it will need upgrading sooner then others. For example my forums will most likely remain small, my shop will hopefully grow to be a decent site and my video sharing section will prob be medium sized.
My thoughts were to set it up with the following $5 droplets and upgrade them as they become to small.
I would also like an email server on there somewhere.
I was hoping to have this set up so that it will all be www.example.com, www.example.com/forums /videos /store so i can use 1 ssl cert for them all.
My main question is, is this overkill? would i be better off putting 1,2,4 on the 1 droplet and the videos on another? And on a technical points would i just use a .htaccess redirect on 4 to have the others as subfolders? Would the ssl cert work over multiple servers like this?
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!
That sounds like a reasonable set up. You could probably condense things a bit it you wanted to. If you go that route, I’d argue for keeping the database server on a separate droplet. Check out this article for a good starting off point on thinking about different setups:
https://www.digitalocean.com/community/tutorials/5-common-server-setups-for-your-web-application
SSL certificates are bound to a hostname, not the server. So it’s fine to use one on multiple servers. As for using .htaccess redirects, I’m personally a fan of subdomains for this sort of thing, eg: store.example.com and videos.example.com Than you can just use ServerName directives in your VirtualHosts.
Hey,
A quick update to this thread in case anyone comes across this in the future.
It’s always a good idea to plan ahead for scalability. The approach of starting with smaller Droplets and upgrading as needed is a good strategy. Here are a few more suggestions:
https://www.digitalocean.com/products/managed-databases-mysql
Consider using the DigitalOcean App Platform, which offers auto-scaling, managed services, and easier deployments. The App Platform platform can handle scaling for you and ensure that your applications are resilient and you will not have to do any server maintenance
To have everything under www.example.com with subdirectories (/forums, /videos, /store):
Single SSL Certificate:
Using DigitalOcean App Platform:
https://docs.digitalocean.com/products/app-platform/how-to/manage-components/
Reverse Proxy Setup:
server {
listen 80;
server_name www.example.com;
location /forums {
proxy_pass http://forums_backend;
}
location /videos {
proxy_pass http://videos_backend;
}
location /store {
proxy_pass http://store_backend;
}
# Other configurations...
}
SSL Termination:
Your initial setup of using $5 Droplets is a good start. As you scale, separating services onto different Droplets or using managed services will provide better performance and reliability. Using the DigitalOcean App Platform can further simplify scaling and management.
- Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.