Hi, for your first issue of "/admin" this isn't a valid url and therefore the default "index.html" will be executed, if you call "/admin/" which is a valid url, you'll get the index of /admin/index.html ;)
Regarding default welcome file handling, this can't be disabled right now. Need to verify if this should be / could be actually possible. Regards, Achim 2016-11-15 11:10 GMT+01:00 Bengt Rodehav <[email protected]>: > I have a couple of issues with welcome files. > > I have some files at the root context, among others an index.html which is > my starting page. I also have a subfolder "/admin" where I have other types > of resources. There is also an "/admin/index.html" which is the starting > page for the administrative user interface. > > If you specify the URL "/admin", the browser is directed to the file > "/index.html" and not "/admin/index.html" that I would have expected. Is > this the way it is supposed to work or do we have a bug? > > I am now using the UrlRewriterFilter for other stuff and might use it also > for welcome files. In that case I want to disable the welcome files in > Pax-Web. But there seems to be no way to do that. I've tried both > > mWebService.registerWelcomeFiles(null, false, mHttpContext); > > > ...and > > mWebService.registerWelcomeFiles(new String[] { }, false, >> mHttpContext); > > > But none of those calls are accepted. > > How can I tell Pax-Web NOT to handle welcome files at all? > > /Bengt > > -- > -- > ------------------ > OPS4J - http://www.ops4j.org - [email protected] > > --- > You received this message because you are subscribed to the Google Groups > "OPS4J" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Apache Member Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead blog <http://notizblog.nierbeck.de/> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS> Software Architect / Project Manager / Scrum Master -- -- ------------------ OPS4J - http://www.ops4j.org - [email protected] --- You received this message because you are subscribed to the Google Groups "OPS4J" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
