Docs/linux基础/nginx/nginx匹配问号.txt
2022-10-18 16:59:37 +08:00

13 lines
No EOL
279 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

举例说明访问连接为http://192.168.1.107/server/api?wsdl
nginx配置
server {
listen 80;
server_name 192.168.1.107;
location /server/api {
if ($args ~ 'wsdl') {
return 301 http://$server_name:$server_port/server/api?wsdl;
}
}
}
}