Hello,
We are noticing that if someone puts in an unknown path on our test server, they end up at a 404static.xhtml file that doesn't match our theming. (this is dataverse 6.6, but I think the change was introduced in 6.0) It looks exactly like this: https://dataverse.harvard.edu/test
It's not customized to match our site and we were wondering what the recommendation is for working with these files? Should we customize them ourselves, or is there a different way people handle 404's?
Thanks!
Bethany
Right, it was added in #9856. Hmm.
Do you have a proxy in front, such as Apache or nginx? I'm guessing Apache since you have Shibboleth enabled. Maybe you can define your own 404 page there? There's an example of a 503 page at https://github.com/IQSS/dataverse/commit/aba7cd21bd9fcfd8fe37123f9d58339ed9436081 and a bit of a description here: https://github.com/IQSS/dataverse/issues/131#issuecomment-146719099
Hmmm... it's probably bad to change the web.xml config, right? Considering it's overwritten when a new install happens?
The original 404.xml file is still there and works well. This current setup (404static.xml) is not documented (that I could find) and I imagine many people want a customized error page.
(I haven't fully read through the links you sent)
Hmm. What about the new SPA UI? Should we fix it there instead of in JSF?
That's a good question. I wonder how quickly people will move to the SPA. I'm not sure how quickly we can move to it.
Have a nice weekend!
You too!
Just upgraded to v6.0 and getting the 404static.xhtml. We revert to the original 404, which is still there. Any possibility of rewording the 404static to make it more generic? I.e. removing this line "Copyright ยฉย 2026, The President & Fellows of Harvard College |ย [Privacy Policy]"
@Yuyun Wirawati hi! Please feel free to create an issue about this, at least.
@Yuyun Wirawati thanks for creating https://github.com/IQSS/dataverse/issues/12183 !
Last updated: Apr 03 2026 at 06:08 UTC