Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

206
Views
Multiple Django projects on one domain under sub urls using NGINX and proxy_pass

I have a Django app on mydomain.com/. I want to have another app on, lets say, mydomain.com/staging/.

1st app: mydomain.com/ 2nd app: mydomain.com/staging/

How do I configure it in Nginx and Django? After this

location ~* ^/staging/ {
rewrite ^/staging/(.*) /$1 break;
proxy_pass http://127.0.0.1:18000;
}

I still have my 2nd app redirect me to my 1st app. When I use mydomain.com/staging/admin/, it redirects me to mydomain.com/admin/, and every URI I use does the same. What is the proper way of configuring multiple sub-url Django apps?

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!