server { listen 80; listen [::]:80; root /data/wwwroot/arpgpatch/; server_name _; location / { try_files $uri $uri/ =404; } location /android { default_type application/octet-stream; alias /data/wwwroot/arpgpatch/android; autoindex off; autoindex_exact_size off; } location /download { alias /data/wwwroot/arpgbuildapk; autoindex on; autoindex_exact_size off; autoindex_localtime on; charset utf-8,gbk; } location ~ ^/data/wwwroot/arpgbuildapk/(.*)$ { add_header Content-Disposition "attachment; filename=$1"; } } server { listen 56318; listen [::]:56318; location ^~ /api/ { proxy_pass http://127.0.0.1:55623; } location / { ssi on; ssi_silent_errors on; ssi_types text/shtml; root /data/wwwroot/oss/; } }