I understand my problem a bit better, maybe someone can advise.

I've added some static content to pax-web under jetty. It works.
Except when, for one reason on another, the browser tries to access
content outside of the root of the static content. All I want in that
case is a 404, but I get authentication, instead. Can anyone tell me
how to turn it off?


On Tue, Mar 29, 2016 at 7:58 AM, Benson Margulies <[email protected]> wrote:
> When I access '/doc', it asked me to log in. I don't think it was
> doing that when I set this up the other day, but then again, browser
> caching can mislead. How can I turn it off?
>
>
>
> <?xml version="1.0"?>
> <!--
>  Licensed to the Apache Software Foundation (ASF) under one
>  or more contributor license agreements.  See the NOTICE file
>  distributed with this work for additional information
>  regarding copyright ownership.  The ASF licenses this file
>  to you under the Apache License, Version 2.0 (the
>  "License"); you may not use this file except in compliance
>  with the License.  You may obtain a copy of the License at
>
>    http://www.apache.org/licenses/LICENSE-2.0
>
>  Unless required by applicable law or agreed to in writing,
>  software distributed under the License is distributed on an
>  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
>  KIND, either express or implied.  See the License for the
>  specific language governing permissions and limitations
>  under the License.
> -->
> <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN"
> "http://www.eclipse.org/jetty/configure_9_0.dtd";>
>
> <Configure id="Server" class="org.eclipse.jetty.server.Server">
>
>     <!-- =========================================================== -->
>     <!-- Set connectors -->
>     <!-- =========================================================== -->
>     <!-- One of each type! -->
>     <!-- =========================================================== -->
>
>     <!-- Use this connector for many frequently idle connections and for
>         threadless continuations. -->
> <New id="httpConfig" class="org.eclipse.jetty.server.HttpConfiguration">
> <Set name="secureScheme">https</Set>
> <Set name="securePort">
> <Property name="jetty.secure.port" default="8443" />
> </Set>
> <Set name="outputBufferSize">32768</Set>
> <Set name="requestHeaderSize">8192</Set>
> <Set name="responseHeaderSize">8192</Set>
> <Set name="sendServerVersion">true</Set>
> <Set name="sendDateHeader">false</Set>
> <Set name="headerCacheSize">512</Set>
> </New>
>
>     <Get name="handler">
>       <Call name="addHandler">
>         <Arg>
>           <New class="org.eclipse.jetty.server.handler.ContextHandler">
>             <Set name="contextPath">/doc</Set>
>             <Set name="handler">
>               <New class="org.eclipse.jetty.server.handler.ResourceHandler">
>                 <Set name="resourceBase"><SystemProperty
> name="karaf.base" />/../doc</Set>
>                 <Set name="directoriesListed">true</Set>
>               </New>
>             </Set>
>           </New>
>         </Arg>
>       </Call>
>     </Get>
> </Configure>

Reply via email to