Requirements: Jump from
http://aaaa.51cto.com/ninnycalf/works to http://ninnycalf.51cto.com/works
The nginx configuration information is as follows:
location / {
rewrite ^/([a-zA-Z]+)/(.*)$ http://$1.51cto.com/$2 permanent;
}
Requirements: Jump from
http://aaaa.51cto.com/ninnycalf/works to http://ninnycalf.51cto.com/works
The nginx configuration information is as follows:
location / {
rewrite ^/([a-zA-Z]+)/(.*)$ http://$1.51cto.com/$2 permanent;
}