« Previous Next »

Answered Thread: Removeserverheader=1 causes http 400 bad request error

Last post 09-14-2009 11:09 AM by tomkmvp. 5 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (6 items)

Sort Posts:

  • 09-10-2009, 5:08 PM

    • mhnash
    • Not Ranked
    • Joined on 09-10-2009, 9:01 PM
    • Posts 2

    Removeserverheader=1 causes http 400 bad request error

    We need to hide the server header in HTTP respones. When I set the urlscan parameter, Removeserverheader to 1, the server header is not present in an HTTP response test.

    However, when the url for the login page to our site is accesed, a Page Cannot be Found error page displays with HTTP 400 bad request.

    I set the value back to the default of 0, restart IIS and the login page works again.

    The same thing happens when we try to use the Alternateservername option as well.

  • 09-10-2009, 7:08 PM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 12:18 AM
    • Shanghai, PRC
    • Posts 1,427

    Re: Removeserverheader=1 causes http 400 bad request error

    You'd better open URLScan log and check what was recorded when it returned 400.
    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 09-11-2009, 11:03 AM In reply to

    • mhnash
    • Not Ranked
    • Joined on 09-10-2009, 9:01 PM
    • Posts 2

    Re: Removeserverheader=1 causes http 400 bad request error

    There are no entries in the URL scan logs when this happens.

  • 09-11-2009, 11:26 AM In reply to

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

    Re: Removeserverheader=1 causes http 400 bad request error

    mhnash:
    We need to hide the server header in HTTP respones.

    Why?

  • 09-11-2009, 10:42 PM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 12:18 AM
    • Shanghai, PRC
    • Posts 1,427

    Re: Removeserverheader=1 causes http 400 bad request error

    Well, lots of so called "security policies" require that though it does not add some real-world value. 

    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 09-14-2009, 11:09 AM In reply to

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

    Answered Re: Removeserverheader=1 causes http 400 bad request error

    That's what I'm assuming but wanted to hear it from directly the OP.

    People look to jump through all sorts of silly hoops for no real benefit or value ...

Page 1 of 1 (6 items)
Microsoft Communities