LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > Custom ERROR 401

Reply
 
Thread Tools Display Modes
  #1  
Old 07-08-2008, 08:55 AM
zoom zoom is offline
Senior Member
 
Join Date: Nov 2005
Posts: 92
Default Custom ERROR 401

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??

Thanks..
Reply With Quote
  #2  
Old 07-08-2008, 08:59 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
Make sure to use a relative URL like "/my_401page.html", instead of a absolute URL "http://my.site/my_401page.html"
Reply With Quote
  #3  
Old 07-08-2008, 09:20 AM
zoom zoom is offline
Senior Member
 
Join Date: Nov 2005
Posts: 92
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???
Reply With Quote
  #4  
Old 07-08-2008, 09:22 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
It always use the page from its own domain. Should only use relative URL.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:28 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.