Hey. So I have to do the following activity for class: create three droplets, one with MySQL, other with Nginx and the next one with Ghost installed. I have to be able to connect them in orden to Ghost to run properly, but I’m not really sure how to do it. I’ve searched for tutorials around the community and I cannot seem to find anything that works for my particular case. If you have a solution/tutorial for this thing, I will really much appreciate it.
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!
Hi @si722752,
Firstly, I want to say that I’m not sure if having Ghost and Nginx separate will work properly but on to the question.
I assume you’ll be using their public IP addresses. One thing you can do is, allow all traffic from each IP address on each server.
For example, on your MySQL droplet, you’ll need to allow connections from your Nginx and Ghost droplet and the other way around. To do so, you can use the following command
iptables -I INPUT -p tcp -s XXX.XXX.XXX.XXX -j ACCEPT
iptables -I OUTPUT -p tcp -d XXX.XXX.XXX.XXX -j ACCEPT`
As for the how to make Ghost use Nginx, maybe someone else can pitch in and give an idea.
Regards, KDSys
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.