Cats are cute

Posts Tagged With "Deployment"

Hosting Django under different locations with Nginx and gunicorn

Sept. 15, 2011 | by Albert O'Connor

Do you know how Django uses SCRIPT_NAME?

It's not often I host different instances of Django under different locations on the same domain. One legacy install has been setup that way for over a year with Apache2 and mod_wsgi (with Nginx infront). Almost all of my new deployments use virtual hosts with different subdomains for each service.

If you are using virtual hosts with Nginx it looks like this:

server {
    listen   80;
    server_name  service ...
Read More