【发布时间】:2015-07-26 02:10:37
【问题描述】:
我想要我的 nginx 动态位置 例如
~* /profile/{{anything}} {
alias C:/bitbucket/profiles/app/modules/profile;
index profile.html;
}
我怎样才能做到这一点?
【问题讨论】:
-
你只想忽略
anything? -
没有任何东西可以像 /profile/1234 或 /profile/profileid
-
还是不清楚。显示一些示例 URL 以及应该为它们提供哪些文件
-
好的,我来解释一下。假设有两个配置文件 id 915 和 698,我的链接将是 www.exmaple.com/profile/915 或 www.exmaple.com/profile/698 或 www.exmaple.com/profile/{{anyprofileid}}
-
不要写在cmets中。将其放入帖子中。
标签: nginx