2015-07-21 68 views
-1

我希望我的nginx的位置动态 例如dynamicaly设置nginx的位置配置文件

~* /profile/{{anything}} { 
    alias C:/bitbucket/profiles/app/modules/profile; 
index profile.html; 
    } 

我怎样才能做到这一点?

+0

你只是想忽略任何东西? –

+0

没有任何东西可以像/ profile/1234或/ profile/profileid –

+0

仍然不清楚。显示一些示例网址以及应该为他们提供哪些文件 –

回答

0

好让我解释一下你。假设有两个配置文件ID 915和698,我的链接将是www.exmaple.com/profile/915或www.exmaple.com/profile/698或www.exmaple.com/profile/{{anyprofileid}} -