• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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