Custom ERROR 401

Discussion in 'General' started by zoom, Jul 8, 2008.

  1. zoom

    zoom Well-Known Member

    I've created a custom error 401 error page, however the odd thing is that I'm getting the error page instead of the typical user/pw prompt you get with you secure a directory with a realm. When I remove the custom error page reference for the vhost it seems to work fine, however I don't have a custom msg anymore for failed login.

    Why do I see the custom error page first when I navigate to the page??

  2. mistwang

    mistwang LiteSpeed Staff

    Make sure to use a relative URL like "/my_401page.html", instead of a absolute URL ""
  3. zoom

    zoom Well-Known Member

    In the case of a template what should I put my custom error pages? If I use a relative URL like /error401.html will the server serve up the page for domain x and domain y correctly?

    Should I put something like $SERVER_ROOT/errors/error401.html???
  4. mistwang

    mistwang LiteSpeed Staff

    It always use the page from its own domain. Should only use relative URL.

Share This Page