mod_dir.c revision 4f9a74ad7e44b0464f7cf56525a205d788becacb
2058N/A/* ==================================================================== 2058N/A * The Apache Software License, Version 1.1 2058N/A * Copyright (c) 2000 The Apache Software Foundation. All rights 2058N/A * Redistribution and use in source and binary forms, with or without 2058N/A * modification, are permitted provided that the following conditions 2058N/A * 1. Redistributions of source code must retain the above copyright 2058N/A * notice, this list of conditions and the following disclaimer. 2058N/A * 2. Redistributions in binary form must reproduce the above copyright 2058N/A * notice, this list of conditions and the following disclaimer in 2058N/A * the documentation and/or other materials provided with the 2058N/A * 3. The end-user documentation included with the redistribution, 2058N/A * if any, must include the following acknowledgment: 2058N/A * "This product includes software developed by the 2058N/A * Alternately, this acknowledgment may appear in the software itself, 2058N/A * if and wherever such third-party acknowledgments normally appear. 2058N/A * 4. The names "Apache" and "Apache Software Foundation" must 2058N/A * not be used to endorse or promote products derived from this 2058N/A * software without prior written permission. For written 2058N/A * permission, please contact apache@apache.org. 2058N/A * 5. Products derived from this software may not be called "Apache", 2058N/A * nor may "Apache" appear in their name, without prior written 2058N/A * permission of the Apache Software Foundation. 2058N/A * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 2058N/A * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 2058N/A * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 2058N/A * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR 2058N/A * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2058N/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2058N/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 2058N/A * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 2058N/A * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 2058N/A * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 2058N/A * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2058N/A * ==================================================================== 2058N/A * This software consists of voluntary contributions made by many 2058N/A * individuals on behalf of the Apache Software Foundation. For more 2058N/A * information on the Apache Software Foundation, please see 2058N/A * Portions of this software are based upon public domain software 2058N/A * originally written at the National Center for Supercomputing Applications, 2058N/A * University of Illinois, Urbana-Champaign. /* KLUDGE --- make the sub_req lookups happen in the right directory. * Fixing this in the sub_req_lookup functions themselves is difficult, * and would probably break virtual includes... /* If the request returned a redirect, propagate it to the client */ /* If the request returned something other than 404 (or 200), * it means the module encountered some sort of problem. To be * secure, we should return the error, rather than create * along a (possibly unsafe) directory index. * So we store the error, and if none of the listed files * exist, we return the last error response we got, instead * of a directory listing. /* nothing for us to do, pass on through */ NULL,
/* create per-server config structure */ NULL,
/* merge per-server config structures */ NULL /* register hooks */