python - access static files as well from uWSGI -


i have application (on openshift) can run python. reach static, eg. html files. when try get:

uwsgi error

python application not found

could please how can make server not interpret files python?

uwsgi needs python app serve url.

as http://uwsgi-docs.readthedocs.org/en/latest/http.html#can-i-use-uwsgi-s-http-capabilities-in-production said:

if want use real webserver should take account serving static files in uwsgi instances possible, not using dedicated full-featured web server.

in normal case, clients send http requests nginx or other web server, handles static files' responses , leaves rest uwsgi.

you might better ask on https://serverfault.com/about


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -