I am trying to set up a web interface for a backup system and I can’t figure out where to put my .cgi scripts. Any help would be great!
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!
The GitLab One-Click image uses the “Omnibus” installer. It ships its own bundled version of Nginx, and is designed to be stand-alone. The there are ways to tweak it. You’ll want to take a look at the README for GitLab’s “Omnibus” installer especially this doc on Nginx settings for GitLab.
Your best bet is probably to add a custom Nginx “server block.” This will allow you to set up a separate Nginx config file for for In /etc/gitlab/gitlab.rb add:
external_url "http://example.com"
nginx['custom_nginx_config'] = "include /etc/nginx/conf.d/*.conf;"
You can now create a server block for your main site in the /etc/nginx/conf.d/ directory. Then run gitlab-ctl reconfigure to pick up the changes.
Check out some of the tutorials under the Nginx tag for a better understanding of the way to set up the configuration. It will depend on what kind of scripts you are trying to run.
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.