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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > [Solved] Custom error page

Reply
 
Thread Tools Display Modes
  #1  
Old 12-15-2010, 02:01 AM
DoM DoM is offline
Senior Member
 
Join Date: Sep 2010
Posts: 123
Default [Solved] Custom error page

Hi,
from where i can modify error page like code 403,404,500 and so on ?

Litespeed does not take automatically error page configured from cPanel/WHM ?


Waiting for your reply

Regards
Reply With Quote
  #2  
Old 12-15-2010, 03:23 AM
NiteWave NiteWave is online now
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,218
lsws support ErrorDocument directive.

as long as ErrorDocument in httpd.conf or .htaccess, lsws will pick them up.
Reply With Quote
  #3  
Old 06-26-2012, 04:55 AM
itdungpt itdungpt is offline
Member
 
Join Date: Jun 2012
Posts: 11
i want default for all account. don't want use .htaccess
Reply With Quote
  #4  
Old 06-26-2012, 11:28 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
for system wide default, you can configure ErrorDocument in httpd.conf or a conf file included by httpd.conf.
Reply With Quote
  #5  
Old 06-27-2012, 04:05 PM
bangsters bangsters is offline
Member
 
Join Date: Dec 2011
Posts: 40
webizen, for system wide, does litespeed recognize php files for 404 errordocs?

i have tweaked mine, it takes html files, but not php files.
Reply With Quote
  #6  
Old 06-27-2012, 05:15 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
Quote:
Originally Posted by bangsters View Post
webizen, for system wide, does litespeed recognize php files for 404 errordocs?

i have tweaked mine, it takes html files, but not php files.
It should. what does your php file look like?
Reply With Quote
  #7  
Old 06-27-2012, 08:33 PM
bangsters bangsters is offline
Member
 
Join Date: Dec 2011
Posts: 40
Quote:
Originally Posted by webizen View Post
It should. what does your php file look like?
regular php file. the guys at interworx managed to fix it. needed to add the following the the httpd.conf file just above the errordocument line

AddHandler php5-script .php
AddType text/html .php
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 08:27 AM.



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