Serving static content with uwsgi

You can serve your static files through uwsgi by adding this line to the uwsgi settings:

check-static=/path/to/my/static/files

However, I discovered that it did not set mime types correctly. Apparently, uwsgi checks /etc/mime.types and it was not present on my arch system. The following command fixed the problem:

pacman -S mime-types

Comments are closed.