私のnginx.confファイルには、次のようなものがあります:
...
location ^~ /path1/ {
root /usr/local/html;
index path1.html;
}
location ^~ /path2/ {
root /usr/local/html;
index path2.html;
}
...
ワイルドカード、書き換えなどを使用して、2 つの「リダイレクト」を 1 つに結合することは可能ですか?
もしそうなら、どうすればいいですか?