[api,webui] add use_xaccel to support X-Accel-Redirect header for Nginx.