nginx: root should be the public directory so that try_files works
Make X-Accel-Redirect work with the example nginx config