News for hackers. Stuff that matters.
Re:Website outages and blackouts the right way by insickness on Monday January 16, 2012 @08:43AM (#3470573)
Can someone explain how to change a site to return a 503 HTTP header?
Re:Website outages and blackouts the right way by jagira on Monday January 16, 2012 @08:56AM (#3470614)
Put Redirect 503 in your Apache configuration file.
Re:Website outages and blackouts the right way by pquerna on Monday January 16, 2012 @10:36AM (#3470961)
I wrote this up awhile ago for how to do this in pure httpd configuration:

http://journal.paul.querna.org/articles/2009/08/24/downtime-...

Re:Website outages and blackouts the right way by shawnz on Monday January 16, 2012 @08:52AM (#3470601)
You 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.
Re:Website outages and blackouts the right way by pjscott on Monday January 16, 2012 @07:47PM (#3473289)
Which HTTP server are you using? Apache? nginx? Each one is different.