Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 3014 invoked from network); 15 Mar 2004 10:10:09 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 15 Mar 2004 10:10:09 -0000 Received: (qmail 87806 invoked by uid 500); 15 Mar 2004 10:08:59 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 87765 invoked by uid 500); 15 Mar 2004 10:08:59 -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 87712 invoked from network); 15 Mar 2004 10:08:59 -0000 Received: from unknown (HELO vjo-mails-02.primeexalia.com) (66.149.222.254) by daedalus.apache.org with SMTP; 15 Mar 2004 10:08:59 -0000 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 Date: Mon, 15 Mar 2004 02:09:12 -0800 Message-ID: <87AD3DFBFADD2B4EB6A147A276DBFEED0B5A31@vjo-mails-02.primeexalia.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [users@httpd] Alias all files to one script ? Thread-Index: AcQKdOd33pO5E2e9Ry2y5al30IB1TAAABn6g From: "Gary Smith" To: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: RE: [users@httpd] Alias all files to one script ? X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Create the directory /bar and then put the 404 entry into the .htaccess = file. /bar/.htaccess: ErrorDocument 404 /scripts/myscript.php4 This will override the default directory settings (or add to them) for = the directory path inside of the httpd.conf file. This does assume that = override is allowed in the httpd.conf file. You can have a similar one = in the / and the /bar/.htaccess will override it for that one directory = (and it's subdirs) only. Hope this helps Gary Wayne Smith -----Original Message----- From: ing.Martin Pr=E1=B9ek [mailto:prasek@silesia.cz]=20 Sent: Monday, March 15, 2004 1:59 AM To: users@httpd.apache.org Subject: [users@httpd] Alias all files to one script ?=20 On server www.foo.com there is directory /bar in server root. I need to = do some configuration changes to Apache (1.3.26) in my box to fulfill = the following requirements:=20 If there comes a request for www.foo.com/bar/whatever Apache should not = return "whatever", to client, but should run = "www.foo.com/scripts/myscript.php4" and return its output (ie = myscript.php4 take a responsibility what will be returned to client). = This should be done for every request for files and subdirectories = inside /bar and even for /bar directory itself. Note that I need = preserve (ie feed to myscript.php4) as much request variableas as = posssible (ip adress of clients, GET, POST and COOKIES, HTTP headers = etc). For some raeson I do not want PHP to run as CGI too. It should be = transparent for clients, so 3xx status code (redirection) is not = solution for me. =20 i read the documentation and I find only AddHandler and AddAction, but = seems it allow only to call a CGI program and match only extensions (fix = me if I am wrong). Tnanx for help. PS: Execuse my bed English. --------------------------------------------------------------------- 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 --------------------------------------------------------------------- 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