I have a droplet in Digitalocean where I installed gitlab CI
The problem is that every domain I create it redirects to gitlab page
How can I make only 1 url that takes to gitlab ci and one for django?
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!
Sorry to see that your question hasn’t received an answer yet. Unfortunately, without more information, it is unlikely that an answer for this specific issue can be provided. Generally, you would need to configure this at the web server (e.g. Apache or Nginx) level. For example, if you were using Nginx, you could create two separate server blocks to direct requests to the right app. Learn more about Nginx server blocks in this tutorial:
One important thing to note is that if you installed GitLab using their omnibus packages, they bundle a Nginx installation of their own which must be configured in /etc/gitlab/gitlab.rb
The simplest way to add a new server block is to add a custom include directive. This will allow you to set up a separate Nginx config file for the Django project. In /etc/gitlab/gitlab.rb add:
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. You can also disable the bundled Nginx all together and install the distro version if you want by adding:
nginx['enable'] = false
See here for more information on inserting custom settings into GitLab’s Nginx config.
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.