• 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

httpd.conf & custom 503 error page?

halliday

Basic Pleskian
Hi

I am trying to have the server display my own 503 page when the error is encountered.

Now I was told to uncomment the line:
# ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
in httpd.conf and edit the content of that file, i.e. "HTTP_SERVICE_UNAVAILABLE.html.var"

have done all this, but it did not work.

"httpd.conf" is in /etc/httpd/conf/
and
"HTTP_SERVICE_UNAVAILABLE.html.var" is in /var/www/errors

The point is that when 503 error (Serice Unavailable) is encountered, the displayed message is actually different to the message in "HTTP_SERVICE_UNAVAILABLE.html.var"

Where is apache getting the error messages from?
How can I change them?

Your advice would be greatly appreciated,

David
 
It is my pleasure to read your post,though I can't help you ,still to support you.
 
Back
Top