社内で、開発環境や、ステージングなどを同じ環境で、URL分けて使いたい とか 個人プロジェクト同一URLだけど、プロジェクトとしては分けて開発してる とか ポートを分けないで、サーバ内で振り分ける場合の設定についてのメモ http { ... server { listen 80; server_name localhost; # 下記は、http://xxxxxxxx/app/にアクセスされることを想定 location /app/ { include uwsgi_params; uwsgi_pass unix:/tmp/uwsgi.sock; } ... [uwsgi] # 下記は、manage.pyがあるディレクトリ base = /root/demo # the base directory (full path) chdir = %(base) # 下記にbaseからみた、wsg