修改server.xml,在<host>中添加<Context>,具体配置如下:

1 <!-- 目录映射 -->
2 <Context path="/upload" docBase="/data/upload" />