Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 13875 invoked by uid 500); 21 May 2003 00:31:43 -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 13860 invoked from network); 21 May 2003 00:31:42 -0000 Received: from illuminati.cryptocracy.com (203.222.127.241) by daedalus.apache.org with SMTP; 21 May 2003 00:31:42 -0000 Received: by illuminati.cryptocracy.com (Postfix, from userid 500) id 5148F122A5; Wed, 21 May 2003 10:33:11 +1000 (EST) Date: Wed, 21 May 2003 10:33:11 +1000 From: Zac Stevens To: users@httpd.apache.org Message-ID: <20030521103311.B1193@cryptocracy.com> References: <19368.1053447145@www65.gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <19368.1053447145@www65.gmx.net>; from MarcDreher@gmx.net on Tue, May 20, 2003 at 06:12:25PM +0200 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: Re: [users@httpd] Redirecting requests, proxy.pac file Hi Marc, On Tue, May 20, 2003 at 06:12:25PM +0200, Marc Dreher wrote: > We want to show an html error messages when peoples browsers fetch the old > proxy.pac file, stating that the server is outdated and that they should > correct their proxy configuration settings. The short answer is that you cannot. Although it is being fetched by HTTP, the client expects to receieve a javascript file that it can use to figure out the appropriate proxies. How the browser handles unexpected input is entirely up to it - but in my experience, most will either fail silently or give a not-entirely-obvious error message. One way to solve the problem would be to update the proxy.pac on the old server to point to a webserver that returns your custom error page instead of proxying requests. The effect of this would be that the user could no longer surf to anything using a proxy until they pointed to the new proxy.pac and reloaded. Cheers, Zac --------------------------------------------------------------------- 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