[Solved] Custom error page

Discussion in 'Install/Configuration' started by DoM, Dec 15, 2010.

  1. DoM

    DoM New Member

    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

  2. NiteWave

    NiteWave Administrator

    lsws support ErrorDocument directive.

    as long as ErrorDocument in httpd.conf or .htaccess, lsws will pick them up.
  3. itdungpt

    itdungpt New Member

    i want default for all account. don't want use .htaccess
  4. webizen

    webizen New Member

    for system wide default, you can configure ErrorDocument in httpd.conf or a conf file included by httpd.conf.
  5. bangsters

    bangsters Member

    webizen, for system wide, does litespeed recognize php files for 404 errordocs?

    i have tweaked mine, it takes html files, but not php files.
  6. webizen

    webizen New Member

    It should. what does your php file look like?
  7. bangsters

    bangsters Member

    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

Share This Page