Upgraded to 0.10.6.
Behaviour did not changed.
I tried three variants of rewrite directive in admin.dev.domain.net block.
Details:
1 Code:
index admin.html
rewrite {
to {path} {path}/ /
}
Results to: admin.dev.domain.net returns always index.html instead of admin.html from this block (seen in logs).
2 Code:
index admin.html
rewrite / admin.html
Results to: admin.dev.domain.net returns admin.html for / path and 404 for other paths.
3 Code:
index admin.html
rewrite {
to {path} {path}/ /admin.html
}
Results to: admin.dev.domain.net returns index.html for / path and admin.html for other paths.
We need: admin.dev.domain.net returns admin.html for / path and admin.html for other paths.