nginx 代理 location不同的前缀校验不同的文件格式,怎么配置?-灵析社区

你好我叫张倩话

server { listen 9023; server_name localhost; location /test1/ { if ($request_uri ~* \.png$) { proxy_pass http://192.168.3.14:9090; } return 403; } location /test2/ { proxy_pass http://192.168.3.14:9090; } }

阅读量:1

点赞量:0

问AI