0

I already have a configuration for application that covers my domain /, but I would like to have www.mydomain.com/something/thisthing to be covered by different config file, a different application altogether.

Is this possible in nginx and how?

4

1 回答 1

1

听起来您想为特定的位置块使用单独的配置文件,对吗?如果是这样,您可以使用 nginx 指令 include 来包含外部配置文件。例如:

位置 /thisthing { 包括外部文件;}

一旦进入该位置块,您就可以按照您认为合适的方式处理该流量。

于 2013-10-09T21:36:49.627 回答