[solved] custom global 404 error with interworx

Discussion in 'Install/Configuration' started by bangsters, Jun 15, 2012.

  1. bangsters

    bangsters New Member

    Hi.

    We are using litespeed with interworx. We can change the 404 error document from within each end user.

    How do we change it globally? We want to replace the default 404 page? The end users will still have the option of customizing their 404 via .htaccess. Globally though, how?

    EDIT:

    by the way, already came across this post, but I cannot find an errordocument.conf. We are using interworx with cloudlinux, and litespeed i using httpd.conf:

    http://www.litespeedtech.com/support/forum/showpost.php?p=24880&postcount=4
    Last edited by a moderator: Jun 22, 2012
  2. bangsters

    bangsters New Member

    bump please.

    thanks!!
  3. bangsters

    bangsters New Member

    bump again please. trying to set a default global 404 for our server running litespeed.

    how can we accomplish this
  4. webizen

    webizen New Member

    /usr/local/interworx/etc/httpd/httpd-custom.conf

    ErrorDocument 404 /path/to/custom404.html
  5. bangsters

    bangsters New Member

    Thanks as always!!
  6. bangsters

    bangsters New Member

    @webizen: Can Litespeed use php as an errordocument?

    I added a custom 404 in the httpd.conf file. If I use filename.php it doesn't get recognized, but if I use filename.html it works just fine.

    I want to use PHP so I can put custom php coding.

    Please advice.

    Thanks

Share This Page