nginx serving Django in a subdirectory through uWSGI
问题 I have already gone through some previous threads: How do I set subdirectory in nginx with Django how to deploy django under a suburl behind nginx Serving flask app on subdirectory nginx + uwsgi The basic lesson is that you should only need to configure your site(s-available) to achieve this. I have now tried various permutations of server { listen 80; server_name www.example.com; location = /favicon.ico { access_log off; log_not_found off; } location /static/ { root /path/to/project; }