I want to set path like this:
location /board/1 {
alias /home/front/;
break;
}
location /board/2 {
alias /home/front/;
break;
}
location /board/{ANY_NUMBER 3..} {
alias /home/front/;
break;
}
So I write like this:
location ^~ /board/ {
alias /home/front/;
break;
}
Then I go to /board/1
nginx access to /home/front/1
I want to access to /home/front
When I set like this:
location /board/1 {
alias /home/front/;
break;
}
nginx access to /home/front
successfully
Can someone explain what's going on.