webapp - set index to be index.xquery or .xml instead of .html

Thursday, 8 November 2012 · 2 messages · last reply 9 Nov 2012
CG
Christian Grünin reply to Colin McEnearney, 9 Nov 2012, 00:008 Nov 2012 23:03 #
Along with BaseX 7.5, we're planning to introduce direct evaluation of XQuery scripts. The feature is already working if the "DirectServlet" section in web.xml is activated, but it will take a while until everything will be properly documented. You may as well want to gather some experience with our powerful implementation of RESTXQ.. http://docs.basex.org/wiki/RESTXQ
Quoted text · Colin McEnearney · 28 lines
On Thu, Nov 8, 2012 at 10:59 PM, Colin McEnearney <colinmcenearney at gmail.com> wrote: > Hi, > > I want my basex webapp's root url, ie domain.com/ to default not to > index.html, but to index.xquery or any kind of "x" :-) > > Currently running with nginx > > # pass requests for content to basex > location / { > index index.xqy index.xquery index.xml; > proxy_pass http://127.0.0.1:8984; > } > > But only index.html behaves this way. (all others show directory contents) > > I think maybe this is set somewhere in the jetty context, but can't find it. > > Does anyone know the answer? > > > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
CM
Colin McEnearney9 Nov 2012 00:00 #
Hi, I want my basex webapp's root url, ie domain.com/ to default not to index.html, but to index.xquery or any kind of "x" :-) Currently running with nginx
    # pass requests for content to basex
    location / {
      index index.xqy index.xquery index.xml;
      proxy_pass      http://127.0.0.1:8984;
    }
But only index.html behaves this way. (all others show directory contents) I think maybe this is set somewhere in the jetty context, but can't find it. Does anyone know the answer?

⚡Generated with XQuery