« Previous Next »

Thread: iis7 bad request no document specified

Last post 07-03-2009 5:50 AM by jcroughton. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 07-01-2009, 12:59 PM

    iis7 bad request no document specified

    hi community

    i'm really hoping someone can help me.

    i've got windows vista business running iis7. i've made a couple of amends in the past that allow me to use url rewriting in a similar way to iis6 and this has been working fine - http://www.improve.dk/blog/2006/12/11/making-url-rewriting-on-iis7-work-like-iis6

    however, today i tried to navigate to my localhost without the document name specified

    http://localhost/

    but i receive a Bad Request (http 400 error) back. no other information is available, via the source of the page returned or fiddler.

    if i navigate to http://localhost/default.aspx or whatever my document name is the server responds ok?

    additional info that may of help indirectly:

    .i've installed xampp (but changed the listen ports to 8080 for http and 4499 for ssl) for a site i need to develop under php
    .i've installed activeperl (required by the xampp install for the program i am using)

    as you can see iis works ok when the document is specified but doesn't when it isn't.

    i've checked my default document is set (which it is) and wonder if it might be something to do with the handler mappings? see them here

    http://img197.imageshack.us/img197/1271/15279742.jpg

    i'd be very grateful for any help

    regards

    jc

     

  • 07-02-2009, 3:42 PM In reply to

    • davcox
    • Top 50 Contributor
    • Joined on 07-21-2006, 2:28 PM
    • Redmond
    • Posts 216

    Re: iis7 bad request no document specified

    Are you still using rewrite rules?  If so, test out the localhost URL (via the UI) and see what happens. 

    If not, can you look into the httperr.log or the w3svc log to see what the actual substatus message is? 

    Dave

  • 07-03-2009, 5:50 AM In reply to

    Re: iis7 bad request no document specified

     hi dave, thanks for your reply.

    yes, still using rewriting. i tend to set up a website in iis per project i'm working on, then just stop and start the appropriate one.

    i checked the logs and am only seeing a 400 with no sub-status, here's the output

    #Software: Microsoft Internet Information Services 7.0
    #Version: 1.0
    #Date: 2009-07-03 09:42:01
    #Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status time-taken
    2009-07-03 09:42:01 127.0.0.1 GET / - 80 - 127.0.0.1 Mozilla/5.0+(Windows;+U;+Windows+NT+6.0;+en-GB;+rv:1.9.1)+Gecko/20090624+Firefox/3.5+(.NET+CLR+3.5.30729) 400 0 0 358

    i've also setup failed request tracing, screen cap here

    http://img190.imageshack.us/img190/9320/59349740.jpg

    any ideas?

    regards

    jc

Page 1 of 1 (3 items)
Microsoft Communities