John, You certainly can define pages to show for a particular error. Documentation on that can be found at:
https://www.eclipse.org/jetty/documentation/9.4.1.v20170120/custom-error-pages.html <https://www.eclipse.org/jetty/documentation/9.4.1.v20170120/custom-error-pages.html> Best, Chris On Wed, Jan 25, 2017 at 11:55 AM, John English <[email protected]> wrote: > On 25/01/2017 17:22, Chris Walker wrote: > >> John, >> >> All you have to do in that case is specify the directory location. In >> the example below I set a context of //chris/ using the //chris/ >> directory in the webapps folder of my /${jetty.base}/: >> >> <Configure id="chrisApp" class="org.eclipse.jetty.webap >> p.WebAppContext"> >> <Set name="contextPath">/chris</Set> >> <Set name="war"><Property name="jetty.webapps" >> default="."/>/chris</Set> >> </Configure> >> > > Yet another question: having done this, and added some virtual host > settings (including a 127.0.0.1 for testing), all seems well, except for > one thing: when I try to access 127.0.0.2, it correctly does not access the > webapp, but all I get back is a blank page: no 404 message, although the > 404 shows up in the request log. Is there something else I need to > configure to make something visible happen here? In particular, can I serve > up a static page of my choice? > > > -- > John English > _______________________________________________ > jetty-users mailing list > [email protected] > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://dev.eclipse.org/mailman/listinfo/jetty-users >
_______________________________________________ jetty-users mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/jetty-users
