Re: Custom 404 page works on one server, not another

From: Andrey P (andrey_at_paramonov.pp.ru)
Date: 05/24/04


Date: Mon, 24 May 2004 16:08:02 -0700

Jay Edgar wrote:
> I have read all of the knowledge base articles on this subject, and have not
> found my answer yet.
>
> I have created a custom 404 page in php that helps users who ask for a
> missing page.
>
> I have this working on our sandbox server for our main site. I also have it
> working on one of our secondary sites on the production server. I cannot get
> it to work on the main site in our production server. The 'main' sites
> between sandbox and production are identical, as are their IIS settings (I
> went through each one). Obviously the two sites on the production server are
> on the same box. I'm mystified why I can't get it to work.
>
> It makes no difference whether I change the custom 404 settings to be
> default, URL or file, it continues to display the default page. I tried
> restarting IIS - no change. It's also obvious to me that it's not php, as
> it's not even getting to php. I'm also quite sure the 'check that file
> exists' checkbox is checked.
>
> Can anyone give me suggestions for getting this to work? Any help is greatly
> appreciated.
>
> Regards,
>
> Jay Edgar
>

Hello Edgar

Unfortunately, there's no mystery in our world. Alas. Something is
misconfigured on your "main" site.

0. May I suppose that PHP scripts work well on "main" site.

1. Have you tried to specify a simple html page to handle 404 error?

2. Have you tried to run that 404.php file using a direct link?

3. What's in the IIS http logs? Which page is shown served when you
request a non-existing page?

4. HAve you checked the "master" properties for IIS on the box hosting
"main" web site

5. Do you have "physical" access to that server? I mean - can you run
some utilities from the command prompt/gui?

etc.

-Andrey.



Relevant Pages

  • Re: IIS/SQL Crashing
    ... Since it is a production server we merely have chance to check all these ... > user-mode debug of the worker process memory space at the time of the ... >> time it seems that the IIS stop communicating with the SQL server. ... >> Robert Abela ...
    (microsoft.public.inetserver.iis.security)
  • Re: IE prompts for a password when using anonymous authentication
    ... : production server. ... The virtual directory in IIS is ... The user that virtual directory is setup to ... If I enter my username and password the page I was trying to ...
    (microsoft.public.inetserver.iis.security)
  • IIS 4.0 Caching and File locking
    ... I would like to disable the caching of files on through the IIS ... constraints as the Production server, ... effect would be if I disables the IIS caching. ...
    (microsoft.public.inetserver.iis)
  • Re: Deploying IIS 6.0 Application To IIS 5.0
    ... I don't think there will be an issue in this regard, you applications can be seamlessly deployed and run on production server configuration. ... From IIS 6.0 onwards MS has introduced enhancements like WP running inproc with IIS, but then there won't be a major impact on your applications. ... but have been engaged by a developer that finds my ...
    (microsoft.public.dotnet.framework.clr)
  • Re: Custom 404 page works on one server, not another
    ... > working on one of our secondary sites on the production server. ... > between sandbox and production are identical, as are their IIS settings (I ... It's also obvious to me that it's not php, ... > Jay Edgar ...
    (microsoft.public.inetserver.iis)