first commit
This commit is contained in:
commit
ba848e218d
1001 changed files with 152333 additions and 0 deletions
13
linux基础/nginx/nginx匹配问号.txt
Normal file
13
linux基础/nginx/nginx匹配问号.txt
Normal file
|
@ -0,0 +1,13 @@
|
|||
举例说明:访问连接为: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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue