Advertisement
Guest User

Untitled

a guest
Apr 7th, 2010
7,643
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.02 KB | None | 0 0
  1. # HTTP "mirror" server
  2. #
  3. # Need help or questions: frank@piratenpartij.nl
  4.  
  5. server {
  6.     listen       80;
  7.     server_name  collateralmurder.piratenpartij.nl collateralmurder.com www.collateralmurder.com;
  8.     root   /var/nginx/wikileak/fetch;
  9.  
  10.     error_log off;
  11.     access_log off;
  12.  
  13.     location / {
  14.         root /var/nginx/wikileak/fetch;
  15.         expires 2d;
  16.         error_page 403 404 = /fetch$uri;
  17.     }
  18.  
  19.     location ^~ /fetch/ {
  20.       if ($request_uri ~ /$) {
  21.         set $store_extra index.html;
  22.       }
  23.       internal;
  24.       proxy_pass http://www.collateralmurder.com:80;
  25.       proxy_set_header     X-Forwarded-For  "Pirates! Yarrrrrr";
  26.       proxy_store          /var/nginx/wikileak${uri}${store_extra};
  27.       proxy_store_access   user:rw  group:rw  all:r;
  28.     }
  29.     #error_page  404              /404.html;
  30.  
  31.     # redirect server error pages to the static page /50x.html
  32.     #
  33.     error_page   500 502 503 504  /50x.html;
  34.     location = /50x.html {
  35.         root   /usr/local/www/nginx-dist;
  36.     }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement