Nama domain akses praujian: www.test.com/api/upload
location /api/ { proxy_pass http://127.0.0.1:8080/; }
Alamat akses :www.test.com/api/upload-->http://127.0.0.1:8080/upload
location /api { proxy_pass http://127.0.0.1:8080/; }
Alamat akses: www.test.com/api/upload-->http://127.0.0.1:8080//upload
location /api/ { proxy_pass http://127.0.0.1:8080; }
Alamat akses: www.test.com/api/upload-->http://127.0.0.1:8080/api /upload
location /api { proxy_pass http://127.0.0.1:8080; }
Alamat akses: www.test.com/api/upload -->http:/ /127.0.0.1:8080/api/upload
location /api/ { proxy_pass http://127.0.0.1:8080/server/; }
Alamat akses: www.test.com/. api/upload-->http: //127.0.0.1:8080/server/upload
location /api { proxy_pass http://127.0.0.1:8080/server/; }
Alamat akses: www.test.com/ api/upload-->http://127.0.0.1:8080/server//upload
location /api/ { proxy_pass http://127.0.0.1:8080/server; }
Alamat akses: www.test.com/api/upload-->http://127.0.0.1:8080/serverupload
location /api { proxy_pass http://127.0.0.1:8080/server; }
Alamat akses: www.test.com/api/upload-->http://127.0 .0.1:8080/pelayan/muat naik
Atas ialah kandungan terperinci Apakah perbezaan antara lokasi nginx dan proxy_pass. Untuk maklumat lanjut, sila ikut artikel berkaitan lain di laman web China PHP!