You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
# http://www.tianyun.com/a/b/c
|
|
# $1: /a/b
|
|
# $2: c
|
|
# http://$host$1$2$3/
|
|
|
|
location /a/b/c {
|
|
root /usr/share/nginx/html;
|
|
if ( -d $request_filename ) {
|
|
rewrite ^(.*)([^/])$ $1$2/ permanent;
|
|
}
|
|
}
|
|
|