blazegraph / database

Blazegraph High Performance Graph Database
GNU General Public License v2.0
871 stars 170 forks source link

Change the base path of the blazegraph service #162

Open huikang opened 4 years ago

huikang commented 4 years ago

Is there a way to change the base path of the blazegraph service? For example, instead of using http://localhost:9999/blazegraph/, I'd like to configure the URL like http://localhost:9999/new-blazegraph-base-path/. Thanks.

beebs-systap commented 4 years ago

You can put it behind a reverse proxy configuration or edit the jetty.xml file to deploy the existing war to a different location.

huikang commented 4 years ago

@beebs-systap , regarding the second approach, could you please provide any exemplar file and the command to start the service? Thanks.

beebs-systap commented 4 years ago

Sure, here's how to specify the override. If you are using the war file only, you can just rename it to the path you'd like.

huikang commented 4 years ago

Cool. I am new to Jetty; which value shall I override in the configuration file (web.xml)?

carolili commented 2 years ago

Hello, would it please be possible to have any update on this? I have tried for example the below XML, but it doesn't seem to work:

I see the contextPath is set here: https://github.com/blazegraph/database/blob/3127706f0b6504838daae226b9158840d2df1744/blazegraph-jar/src/main/resources/jetty.xml#L255

But the contextPath is not present in the web.xml. Sorry for bumping a 1 year old issue, any advice is much appreciated.