gtsupport
asked on
Show maintainance page on Network (tcp_error) message
Hi experts,
My site show a network error (like in the image) whenever i try to access our site while we are backing up our database only. Is there a way to redirect the user to a maintenance page whenever they receive this error?
Thanks
tcp-error.bmp
My site show a network error (like in the image) whenever i try to access our site while we are backing up our database only. Is there a way to redirect the user to a maintenance page whenever they receive this error?
Thanks
tcp-error.bmp
ASKER
Hi giltjr,
I have thought of that also and we are already discussing if we are going to put a complete site down page when we are doing the backup since mysql is still available for read-only.
For now I am still exploring if we can still redirect if the request timeout.
If other still have suggestion, it would be much appreciated.
Thanks
I have thought of that also and we are already discussing if we are going to put a complete site down page when we are doing the backup since mysql is still available for read-only.
For now I am still exploring if we can still redirect if the request timeout.
If other still have suggestion, it would be much appreciated.
Thanks
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
For some errors, such as a server not responding, the browser decides what message to show. If you do not control the browser, then there is nothing you can do.
However, since you do control the web server and you should know when you are doing backups, you could do something on the server side. Assuming you do backups at the same time every day you could have the backup script set and remove a value in a file and during the time period that backups normally run have a PHP script check that file and put up "out of service" message when the backup is running.