• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

About Custom Error Pages with css and js

Victor-SP

New Pleskian
Hello.
My server is an CentOs 6 with Plesk 12.

I designed a custom error page that includes a folder css, folder js and folder img another. But it does not work because do not load the files in those folders. I think it might be a problem of paths to the directories. It's posible?

Thaks so much
 
Hello,

1. apache will start to use custom error documents after several hours, when it is restarted during daily maintanence procedure.
2. check Error.log an you will see where apache looks for your custom files. Seems you use wrong path to your css,js and img folder in your custom error pages. Try to access files it that folders directly. Type in address bar http://your.domain.com/error_docs/img/img.jpg and you should see the picture if it is there.
 
Hello,

1. apache will start to use custom error documents after several hours, when it is restarted during daily maintanence procedure.
2. check Error.log an you will see where apache looks for your custom files. Seems you use wrong path to your css,js and img folder in your custom error pages. Try to access files it that folders directly. Type in address bar http://your.domain.com/error_docs/img/img.jpg and you should see the picture if it is there.
Hi smi
Thank you.
I think I've seen the problem: is with the paths. I was using relative paths as this <script src="js/test.js"></script>". I am now trying to fix with absolute paths such as "http://your.domain.com/error_docs/js/test.js"

Thx!!
 
Back
Top