Sha256: c0451d152f78a612a93e898426e83187095f8bfeb1dadc4757722e6633e03a1d

Contents?: true

Size: 927 Bytes

Versions: 2

Compression:

Stored size: 927 Bytes

Contents

# Nginx site configuration by Chef.

server {
  listen 8081;
  server_name localhost;

  access_log  /usr/local/var/log/nginx.access.log;

  root   "#{ENV['HOME']}/www";
  index  index.php;

  if (!-e $request_filename) {
    rewrite  ^/(.*)$  /index.php?q=$1  last;
    break;
  }

  location ~ (\.php)$ {
    include fastcgi_params;
    fastcgi_index index.php;
    fastcgi_connect_timeout 60;
    fastcgi_send_timeout 180;
    fastcgi_read_timeout 180;
    fastcgi_buffer_size 128k;
    fastcgi_buffers 4 256k;
    fastcgi_busy_buffers_size 256k;
    fastcgi_temp_file_write_size 256k;
    #fastcgi_intercept_errors on;
    fastcgi_pass 127.0.0.1:9000;
  }

## Images and static content is treated different
    location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|xml)$ {
      access_log        off;
      expires           30d;
    }


## Disable viewing .htaccess & .htpassword
    location ~ /\.ht {
        deny  all;
    }
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
megalodon-0.1.1 cookbooks/nginx/templates/default/app_nginx.conf.erb
megalodon-0.1.0 cookbooks/nginx/templates/default/app_nginx.conf.erb