Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
insickness
on Jan 16, 2012
|
parent
|
context
|
favorite
| on:
Website outages and blackouts the right way
Can someone explain how to change a site to return a 503 HTTP header?
pirate_is_back
on Jan 16, 2012
|
next
[–]
Put
Redirect 503
in your Apache configuration file.
pquerna
on Jan 16, 2012
|
parent
|
next
[–]
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-...
shawnz
on Jan 16, 2012
|
prev
|
next
[–]
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.
pjscott
on Jan 17, 2012
|
prev
[–]
Which HTTP server are you using? Apache? nginx? Each one is different.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: