Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 29th, 2012  |  syntax: None  |  size: 0.72 KB  |  hits: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. daemon off;
  2. master_process off;
  3.  
  4. events {
  5.   worker_connections 1024;
  6. }
  7.  
  8. http {
  9.   #error_log  /Users/elliottcable/Code/nginx.error.log;
  10.   #access_log /Users/elliottcable/Code/nginx.access.log;
  11.  
  12.   index index.xhtml index.html index.txt;
  13.  
  14.   upstream dev { server 127.0.0.1:7441; }
  15.   server {
  16.     listen 80;
  17.     server_name .dev.o;
  18.    
  19.     root /Users/elliottcable/Code/ANAL-Wowhead/;
  20.     location / {
  21.       try_files $uri $uri/ @proxy;
  22.     }
  23.    
  24.     location @proxy {
  25.       proxy_set_header  X-Real-IP  $remote_addr;
  26.       proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
  27.       proxy_set_header Host $http_host;
  28.       proxy_redirect off;
  29.       proxy_max_temp_file_size 0;
  30.      
  31.       proxy_pass http://dev;
  32.     }
  33.   }
  34. }