我有一些基于 Mojolicious 的应用程序,它们可以在 Apache2 下使用 mod_cgi 和 mod_fastcgi 愉快地运行。
网址例如:
http://example.org/oneapp/path/info?foo=bar
http://example.org/oneapp?foo=bar
http://example.org/secondapp/path/info?foo=bar
http://example.org/thirdapp/path/info?baz=heh
#etc...
我使用 proxy_pass 将应用程序配置为子域取得了相对成功,但我想保留旧的 url(只需从 apache2 切换到 nginx)。我想保留相同的网址,但使用 nginx 运行应用程序。我的配置应该是什么样的,我应该如何运行应用程序。
提前致谢!