Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on May 14th, 2013  |  syntax: None  |  size: 1.11 KB  |  views: 38  |  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. user nginx nginx;
  2. worker_processes 1;
  3.  
  4. error_log /var/log/nginx/error_log info;
  5.  
  6. events {
  7.         worker_connections 1024;
  8.         use epoll;
  9. }
  10.  
  11. http {
  12.         include /etc/nginx/mime.types;
  13.         default_type application/octet-stream;
  14.  
  15.         client_max_body_size 128M;
  16.  
  17.         sendfile on;
  18.         tcp_nopush on;
  19.         tcp_nodelay on;
  20.  
  21.         ignore_invalid_headers on;
  22.  
  23.         fancyindex_exact_size off;
  24.         index index.php index.html;
  25.  
  26.         server
  27.         {
  28.                 listen 80;
  29.                 server_name mywebsite.com
  30.                 root /var/www;
  31.                 location /
  32.                 {
  33.                         allow x.x.x.x;
  34.                         deny all;
  35.                 }
  36.                 location /public
  37.                 {
  38.                         allow all;
  39.                         fancyindex on;
  40.                 }
  41.                 location ~ \.php$
  42.                 {
  43.                         fastcgi_pass unix:/var/run/php-fpm-www.sock;
  44.                         include fastcgi.conf;
  45.                 }
  46.                 include security.conf;
  47.         }
  48. }
clone this paste RAW Paste Data