3 ms·
Can someone explain how to change a site to return a 503 HTTP header?
by insickness 15y ago
Can someone explain how to change a site to return a 503 HTTP header?
- shawnz 15y agoYou can do it on a page-by-page basis. If your server supports PHP, add <? header('HTTP/1.1 503 Service Unavailable'); ?> before all other bytes in the file that you want to 503.
- jagira 15y agoPut Redirect 503 in your Apache configuration file.
- pquerna 15y agoI wrote this up awhile ago for how to do this in pure httpd configuration: http://journal.paul.querna.org/articles/2009/08/24/downtime-page-in-apache/ http://journal.paul.querna.org/articles/2009/08/24/downtime-...
- pjscott 15y agoWhich HTTP server are you using? Apache? nginx? Each one is different.