« Previous Next »

Thread: 409 error when I set a php page as the costum Erros page for 404 http Error

Last post 07-30-2008 9:09 PM by mokafiveqa. 10 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (11 items)

Sort Posts:

  • 06-25-2008, 6:37 PM

    409 error when I set a php page as the costum Erros page for 404 http Error

    Hi everyone,
    1- In my default Web Site I went and create a Virtual Directory where I allow Read,Run,Execute.
    2- I copied a php script in the path location of the Virtual Directory
    3- I set up as a url of the 404 http error that php script

    When I do a put to a url that doesn't exists IIS will run the php script but it will returns a 409.
    (FYI:I have set php to run for all verbs and it does work for regular pages.)

  • 06-26-2008, 5:40 AM In reply to

    Re: 409 error when I set a php page as the costum Erros page for 404 http Error

    A 409 is a conflict.

    There is no info on 409 errors from Microsoft - even there official list of IIS status codes do not mention it. http://support.microsoft.com/?id=318380, http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/6002db2b-59c6-48cd-a060-9394ad4de596.mspx?mfr=true, etc

    They seem to think they do not exist. :)

    I think could occur if IIS cannot find/access the error page file. You have set up custom error pages for all 404s and the pages do not exist or cannot be accessed generating a 404, etc, etc entering some type of conflict or loop. .

    Does the php page for your error open up ok normal going directly to the URL?

    Does a basic html error page work too?

    Have you setup redirections for other custom errors, 403, etc?  (it could be going from a 404 (not found page) to a page it cannot access say a 403 and the 403 pages have a custom error page which they cannot access and the loop/conflict begins.

    So remove all other custom errors if you have them and just have a 404 custom error page as a html pages and progress from there. One step at a time.

  • 06-26-2008, 12:31 PM In reply to

    Re: 409 error when I set a php page as the costum Erros page for 404 http Error

    Hi Rovastar, Thanks a lot for looking into it! I only have one costume error page and it works fine with an HTTP GET... I see what I'm supposed to see and IIS doesn't complain:-) however the minute I do an HTTP PUT bhamm 409... I'm really out of ideas... Hope it helps in case you have any Sincerely,
  • 06-26-2008, 12:59 PM In reply to

    Re: 409 error when I set a php page as the costum Erros page for 404 http Error

    Does a html custom error pages have the same problem as your php one?

    Do other redirects in IIS (not using the redirect on error) work ok to that php page? - set up a redirerct of a dummy file to always goto the the php page. right click a file in iis manager and redirect to the php page.

    This will establish to a degree if there is a general problem with redirecting.

     

  • 06-26-2008, 2:24 PM In reply to

    Re: 409 error when I set a php page as the costum Erros page for 404 http Error

    So it seems that I'm getting 409 no matter what the extension of the file is when I do a PUT but everythign works great when I do a GET or POST... (I tried with an htm file)
    Hmmm fascinating :-)

  • 06-26-2008, 3:48 PM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Central NJ
    • Posts 6,174
    • IIS MVPs

    Re: 409 error when I set a php page as the costum Erros page for 404 http Error

    What are you putting exactly in the text box for the custom error?

  • 06-26-2008, 4:57 PM In reply to

    Re: 409 error when I set a php page as the costum Erros page for 404 http Error

    Here is what I input

    Error code: 404
    Definition: Not Found
    Message type: URL
    URL: /default.htm

    I would like to remind you that it works when I do a GET or a POST it's the PUT that seems to be failing...
    Also the file obviously exists in the local path

    Thanks

     


  • 06-27-2008, 7:44 AM In reply to

    Re: 409 error when I set a php page as the costum Erros page for 404 http Error

    Ummh what about (and clutching at straws a bit here)

    Website --> (home directory --> application settings

    click configuration... --> mappings tab

    select php extension and edit and under bverbs, select 'All verbs'

  • 06-27-2008, 1:12 PM In reply to

    Re: 409 error when I set a php page as the costum Erros page for 404 http Error

    Indeed all verb are is checked...
    I really do not get it :-)

    Thanks a lot for your help guys

     

  • 06-30-2008, 2:25 PM In reply to

    Re: 409 error when I set a php page as the costum Erros page for 404 http Error

    Any other ideas by any chance ???

  • 07-30-2008, 9:09 PM In reply to

    Re: 409 error when I set a php page as the costum Erros page for 404 http Error

    Has anyone else seen this ???

Page 1 of 1 (11 items)
Microsoft Communities