http - Error 500 in uwsgi routing -


i'm using uwsgi provide access nested directory structure "flat" urls - example file /var/files/f/foo can accessed via http://site/files/foo. i've accomplished using --route "^/files/(.)(.*)\$ static:/var/files/\$1/\$1\$2".

this setup works fine when requested files exist, server closes connection , logs http error 500 when requests nonexistent file. can configured return meaningful?

i tried adding --route "^/files/.* return:404", nothing changed.


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

python 3.5 - Pyqtgraph string in x tick -