删除java应用程序的nginx中的子路径(上下文根)
该应用程序位于Payara服务器上,具有上下文根删除java应用程序的nginx中的子路径(上下文根),nginx,url-rewriting,payara,Nginx,Url Rewriting,Payara,该应用程序位于Payara服务器上,具有上下文根nocodeapp-web-front-1.0 我不希望在url中有此上下文根。此nginx配置提供应用程序的索引页面的预期结果(它位于https://test.nocodefunctions.com): 但是,当我们通过单击“Go”按钮在应用程序中导航时,位于/choosefunction.html的页面显示为: https://test.nocodefunctions.com/nocodeapp-web-front-1.0/choosefunc
nocodeapp-web-front-1.0
我不希望在url中有此上下文根。此nginx配置提供应用程序的索引
页面的预期结果(它位于https://test.nocodefunctions.com
):
但是,当我们通过单击“Go”按钮在应用程序中导航时,位于/choosefunction.html
的页面显示为:
https://test.nocodefunctions.com/nocodeapp-web-front-1.0/choosefunction.html
…子路径nocodeapp-web-front-1.0
是否重新出现
我如何获得:
https://test.nocodefunctions.com/choosefunction.html
注意:我检查了这两个问题&,它们对我不起作用我在部署应用程序的阶段删除了上下文根。
https://test.nocodefunctions.com/choosefunction.html