• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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