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
Post a Comment