By Beefhash
Hello!
A friend of mine setup the droplet I currently have and gave me a script so I could easily manage vhosts, its been a long time since I’ve done any of this and my friend has since passed in a car accident so I can’t ask him for help.
The script: https://gist.github.com/SpellCraft/f581b2ed178594d60a9cfd5133692c62
I can’t figure out how to use the script or how it works (beyond setting up a ngnix vhost)
I’d appreciate any help!
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, this a script that creates sub-domain & nginx server block for that automatically.
for example, you have an application that need separate server block & directory for each user/subscriber. if you have that script, you dont need to create server bocks for each users manually. it will automatically create a sub-domain, a root directory for that, a server block and symlink that server block to yours sites-enabled. just you need to run that script/ bash upon user registration.
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.