I have the folllowing requirement: 1. if /usr/share/nginx/html/maintenance.html exists, then always show this file to browser. 2. if this is the static file which located in the sub-directories of /usr/share/nginx/html/, then show this static file to browser. 3. if the URI begins with /testapp1/, then proxy to http://127.0.0.1:8080; else proxy to http://127.0.0.1:8081 And I tried the followiby rrrrcccc - Nginx Mailing List - English