Custom error code page not working

Refers to:

  • Plesk 10.4 for Windows
  • Plesk 11.0 for Windows
  • Plesk 11.5 for Windows
  • Plesk 12.0 for Windows

Created:

2016-11-16 12:40:36 UTC

Modified:

2016-12-21 18:57:00 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Custom error code page not working

Symptoms

Not able to provide file for error_code instead of URL.

Cause

There are two ways to setup the error docs within Plesk.

  1. Type " File " can be used only for EXISTING file located inside ' error_docs ' folder. Like just 'not_found.html '. Non-existing file will be rejected with error:

    Error: File location is invalid
  2. Any error document should be referred to type "URL" as ABSOLUTE URL , like " http://ppw11-5.domain.tld/test/aspnet/test.aspx ".

Surely, this document should be located in available place. Relative URLs are rejected with:

Error: Wrong URL format. Please enter an absolute URL within the virtual host (site)

Resolution

Make sure that you follow principles above.

Have more questions? Submit a request
Please sign in to leave a comment.