nginx配置特定链接跳转

特定链接:http://xxxxx.com/doc

跳转链接:http://xxxxx.com/doc2

location = /doc {
	return 301 http://$server_name/doc2;
}