-
Notifications
You must be signed in to change notification settings - Fork 652
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
a Fuseki Jetty server behind an Apache HTTPd proxy-pass #2392
Comments
Not sure if it's something on the Jena side, or something on the server/proxy-pass. I compared the JS part after syncing the repo, |
My trouble is for any version greater than 4.7.0 (the > was removed in version section), so doing a |
Hi @peutch (Fixed the version. I misunderstood the entry. So it's all versions 4.8.0 and later?) Is the proxy pass changing the URLs? I don't know about relative/absolute naming, sorry. What may help is copying the static assets to the expected file path "webapp/fuseki/static/". |
Hi @afs, Yes, in fact I did not tried 4.8.0 but 4.9.0, 4.10.0 and 5.0.0. Currently there is just this following in the virtualhost configuration:
and the Fuseki Jetty server sets to contextPath='/fuseki'. You can access here to our current «working» setup if it helps to see: |
I have a modified Fuseki-webapp which has a command line In @peutch - would you be able to try that in your setup? @kinow - where does final The webpack to vite change Jan2023, just after 4.7.0, added the
which looks is generated.
( I vaguely recall we had this or similar problem before) |
You can |
@kinow - Ok but how does the build know to put in The idea of editing the generated file after its built ... is a bit risky! |
Agreed!
This might explain it ☝️
We can control that with the diff --git a/jena-fuseki2/jena-fuseki-ui/vite.config.js b/jena-fuseki2/jena-fuseki-ui/vite.config.js
index 4c8bee28c9..f6374b7596 100644
--- a/jena-fuseki2/jena-fuseki-ui/vite.config.js
+++ b/jena-fuseki2/jena-fuseki-ui/vite.config.js
@@ -23,6 +23,7 @@ const path = require("path")
// https://vitejs.dev/config/
export default defineConfig({
+ base: '/something/static/',
plugins: [
vue(),
istanbul({ Or to test without modifying files: $ yarn build --base=/something/static/
$ python3 -m http.server -d target/webapp 8000 Visit http://localhost:8000, and the files included in |
Haven't looked at the pre-vite git files, but I suspect we had |
The problem is that we don't know the "/something" at build time. The "something" is chosen later e.g. by @peutch. If a relative base Would I be right in thinking vite.config.js That gives:The problem is that we don't know the "/something" at build time. The "something" is chosen later e.g. by @peutch. If a relative base PS vitejs/vite#5081 :: setting is |
Yes, a directory/path. The default value is
I think the last option is worth testing. Let me prepare a PR so that we can try that. |
Hi, |
There's now a |
Hi,
|
Thanks for letting us know! I think we ought to add a test for this so we don't break it again. Will create an issue for that. Thanks! |
Done: #2419 |
Version
4.8.0 and after
Question
Hi,
For a long having Fuseki Jetty server behind a proxy-pass was possible up to version 4.7.0. For this, I am just using a extra FusekiCmd2.java (based on FusekiCmd.java little patched) that sets the jettyServerConfig.contextPath property using a extra command line option.
This currently works almost nicely, I did not check for all cases but it is working for what we expected to provide.
Now trying to upgrade to newer Fuseki versions seems to break this.
Regarding the new version 5.0.0, doing the same trick is not a problem regarding Java side. But at runtime, some provided page URLs have mostly references to "/static/...." and not "/fuseki/static/..." for CSS and JS.
Is there a possible solution?
Many thanks,
Patrice
The text was updated successfully, but these errors were encountered: