NoPaste.me

Secure and Anonymous

Login

  • Only for Administration!
Time 04.01.2013 - 16:37
This paste is public Public
Show Options
  1. #user  nobody;
  2. worker_processes  1;
  3.  
  4. pid        logs/nginx.pid;
  5.  
  6. events {
  7.         worker_connections  1024;
  8. }
  9.  
  10.  
  11. http {
  12.         include mime.types;
  13.         include fastcgi.conf;
  14.         default_type application/octet-stream;
  15.  
  16.         sendfile        on;
  17.         keepalive_timeout  3;
  18.        
  19.         client_max_body_size 13m;
  20.         index index.php index.html index.htm;
  21.        
  22.         # Upstream to abstract backend connection(s) for PHP.
  23.         upstream php {
  24.                 server 127.0.0.1:9000;
  25.         }
  26.        
  27.         #include sites-enabled/*;
  28.        
  29.         # Redirect everything to the main site.  We use a separate server statement and NOT an if statement - see http://wiki.nginx.org/IfIsEvil
  30.         server {
  31.                 server_name  _;
  32.                 #rewrite ^ $scheme://localhost$request_uri redirect;
  33.                 rewrite ^ $scheme://localhost$uri redirect;
  34.         }
  35.  
  36.         server {
  37.                 listen 80;
  38.                 server_name localhost;
  39.                 root html;
  40.  
  41.                 include global/restrictions.conf;
  42.  
  43.                 # Only include one of the files below.
  44.                 include global/wordpress.conf;
  45.         }
  46. }