Where you want to end up is root+location, your last uri will now be /etc/nginx/html/common/common
location ^~ /common/ {
root /etc/nginx/html/other;
}
=> /etc/nginx/html/other/common
location ^~ /another/ {
root /etc/nginx/html/other;
}
=> /etc/nginx/html/other/another
nb. When ending a location with .../ you need to enter the URL with an ending / as well.
location ^~ /common/ {
root /etc/nginx/html/other;
}
=> /etc/nginx/html/other/common
location ^~ /another/ {
root /etc/nginx/html/other;
}
=> /etc/nginx/html/other/another
nb. When ending a location with .../ you need to enter the URL with an ending / as well.