在 Ubuntu 14.04 LTS 中,我们如何设置 nginx 配置同时满足用户和应用程序的两个条件?
[从用户的角度来看]
访问
https://example.com/
https://example.com/something
https://example.com/something/happens
将实际访问:
https://example.com/app
https://example.com/app/something
https://example.com/app/something/happens
但我们希望浏览器 url-field 显示:
https://example.com/
https://example.com/something
https://example.com/something/happens
[从应用程序的角度来看]
该应用程序需要使用这些链接,其中/app/作为链接的一部分:
https://example.com/app
https://example.com/app/something
https://example.com/app/something/happens