Answer the question
In order to leave comments, you need to log in
How to deploy django on the same server and domain with gitlab?
I have one domain for git git.domain.com for the site just domain.com.
nginx swears that port 80 is already occupied in the default file, I replaced 80 with 81.
When I try to access the site, the browser swears that this domain usually uses ssl, I tried to google how to use ssl on the site https://evileg. com/ru/post/220/ but it didn't work because again nginx swears that port 443 is already in use.
I am far from nginx and, in general, from administration, can someone tell me how to get django to work next to gitlab, or at least how to google
Answer the question
In order to leave comments, you need to log in
You don’t need to be nearby, it’s better to spread it across different virtual machines / containers, and they can have one nginx (also separate from the rest).
But in general, if server_name
the config blocks have different ones, then you can listen to the same port.
Deploy django on any port and make a reverse proxy in nginx for the domain selected for django - to this port.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question