Created
January 18, 2012 14:11
-
-
Save perusio/1633171 to your computer and use it in GitHub Desktop.
Nginx SOPA HTML5 blackout page in just 5 lines
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### 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