Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 88354 invoked by uid 500); 16 Nov 2002 02:24:51 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 88343 invoked from network); 16 Nov 2002 02:24:50 -0000 Received: from tomts11.bellnexxia.net (HELO tomts11-srv.bellnexxia.net) (209.226.175.55) by daedalus.apache.org with SMTP; 16 Nov 2002 02:24:50 -0000 Received: from JGCOMPUTER ([65.94.5.49]) by tomts11-srv.bellnexxia.net (InterMail vM.5.01.04.19 201-253-122-122-119-20020516) with ESMTP id <20021116022458.PQTP23632.tomts11-srv.bellnexxia.net@JGCOMPUTER>; Fri, 15 Nov 2002 21:24:58 -0500 Date: Fri, 15 Nov 2002 21:01:16 -0500 (Eastern Standard Time) From: Joshua Slive To: , Richard Kurth In-Reply-To: <142278429700.20021115172938@starband.net> Message-ID: X-X-Sender: slive@exchange.commerce.ubc.ca MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: Re: [users@httpd] If Statements in httpd.conf file is this possible On Fri, 15 Nov 2002 rdkurth@starband.net wrote: > If Statements in httpd.conf file is this possible and if so How would > I do it. Can I make it use perl,php or bash in the httpd file. so I can make it > read and use variables > > How can I do a if statement in the httpd.conf file. > I need to have it look in a directory to see if a file is there if it > is not I want it to get the file from a different directory. See "Search pages in more than one directory" under http://httpd.apache.org/docs-2.0/misc/rewriteguide.html It's not exactly simple. Another technique is to point ErrorDocument 404 at a script that looks elsewhere for the content. Joshua. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org