类似:
http://host/a_server-123转换成
http://host/server/service/123 去掉"a_",将"-"换成"/service/"
这样的格式转换 不是nginx配来解决的吧!
大概如下:
location /a_server-123(*)
{
rewrite /server/service/123$1 break;
}
参考:http://blog.csdn.net/xiao_jun_0820/article/details/9397011
http://www.linuxidc.com/Linux/2014-01/95493.htm