Hi,
when adding a Handler its path starts always in the server root by using „/“, i.e. srvr.AddHandler("/Configuration/*", "ConfigurationHandler", False). While the Server is running independently everything works fine. I can access it via: http://localhost:12345/Configuration
But I need to set a different root for this server, because in production it is not running independently. (It runs behind a webserver that is rewriting all requests to the jetty server.) Therefore I need to access the WebApp i.e. via http://localhost:12345/prod/app1/Configuration without changing the source code of the app and recompile it. For production use I need to be free to move it to any root if needed.
Is there any configuration setting I can use to set a custom root dir for the jetty server the webapps are based on? How does it work with B4jServer and B4j?
Thanks,
Thomas
when adding a Handler its path starts always in the server root by using „/“, i.e. srvr.AddHandler("/Configuration/*", "ConfigurationHandler", False). While the Server is running independently everything works fine. I can access it via: http://localhost:12345/Configuration
But I need to set a different root for this server, because in production it is not running independently. (It runs behind a webserver that is rewriting all requests to the jetty server.) Therefore I need to access the WebApp i.e. via http://localhost:12345/prod/app1/Configuration without changing the source code of the app and recompile it. For production use I need to be free to move it to any root if needed.
Is there any configuration setting I can use to set a custom root dir for the jetty server the webapps are based on? How does it work with B4jServer and B4j?
Thanks,
Thomas