Repository navigation
Apache Content Negotiation for CEUR-WS #5
WolfgangFahl
started this conversation in
Ideas
Replies: 2 comments
date;find . -name "*.cermine.xml" | wc -l
Wed Apr 15 07:30:09 PM CEST 2026
76871
wf@wikidata:/hd/mantax/ceur-ws/www$ date;find . -name "*.cermine.xml" | wc -l
Wed Apr 15 08:04:58 PM CEST 2026
77237
date;find . -name "*.cermine.xml" | wc -l
Thu Apr 16 06:19:57 AM CEST 2026
81790 |
0 replies
|
nginx does not offer a good way to do content negotiation. However, in my opinion this is not really needed since we have the metadata in index.jsonld in the volume directories - and these files are served with the correct mime type. Check https://ceur-ws.org/Vol-4294/index.jsonld |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
https://ceur-ws.wikidata.dbis.rwth-aachen.de is a mirror of https://ceur-ws.org
Setup
Virtual host
ceur-ws.wikidata.dbis.rwth-aachen.deserves static files from/hd/mantax/ceur-ws/wwwwithMultiViewsenabled.Config:
/etc/apache2/sites-available/ceur-ws.confHow it works
Apache's
mod_negotiationwithMultiViewsallows clients to request a resourcewithout a file extension. Apache selects the best matching file based on the
client's
Accept:header.For example,
/Vol-3480/paper-01can resolve to any of:paper-01.pdfapplication/pdfpaper-01.tei.xmlapplication/xmlpaper-01.cermine.xmlapplication/xmlpaper-01-content.txttext/plainVerified examples
Default (no Accept header) → resolves to TEI XML:
With
Accept: application/pdf→ resolves to PDF:The response includes
Vary: negotiate,acceptandTCN: choiceheaders,confirming transparent content negotiation is active.
All reactions