How can I avoid uwsgi_modifier1 30 and keep WSGI my application location-independent?
问题 I have a WSGI application using CherryPy hosted using uWSGI behind a ngnix server. I would like for the application itself to be "portable". That is, the application should not know or care what URL it is mapped to, and should even work if mapped to multiple different URLs. I want to DRY by keeping the URL mapping information in one place only. Unfortunately, the only way I have found to do this involves using uwsgi_modifier 30 , which has been called an ugly hack. Can I avoid that hack? For