Skip to content

Instantly share code, notes, and snippets.

@perusio
Created January 18, 2012 14:11
Show Gist options
  • Select an option

  • Save perusio/1633171 to your computer and use it in GitHub Desktop.

Select an option

Save perusio/1633171 to your computer and use it in GitHub Desktop.
Nginx SOPA HTML5 blackout page in just 5 lines
### Here's a very simple SOPA blackout page.
## Include this at the top of your vhost configuration (server block): 'include /path/to/sopa_blackout.conf;'
error_page 503 @sopa;
return 503;
location @sopa {
default_type text/html;
return 503 "<!DOCTYPE html><html><head><meta charset='UTF-8'/><style>body{color: white; background-color: black;}</sytle></head><body><center><h1>We're down due to SOPA blackout!</h1></center></body></html>\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment