~ce-hyperscale/charms/precise/wordpress/arm64-trusty

« back to all changes in this revision

Viewing changes to files/nginx/etc_nginx_nginx.conf

  • Committer: Marco Ceppi
  • Date: 2012-07-11 20:45:43 UTC
  • mto: This revision was merged to the branch mainline in revision 55.
  • Revision ID: marco@ceppi.net-20120711204543-t44tb77atidxflll
Removed all OMG! Ubuntu specific stuff

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
user www-data;
2
 
worker_processes 4;
3
 
pid /var/run/nginx.pid;
4
 
 
5
 
events {
6
 
  worker_connections 8192;
7
 
  multi_accept on;
8
 
  use epoll;
9
 
}
10
 
 
11
 
http {
12
 
  ##
13
 
  # Reverse
14
 
  ##
15
 
  set_real_ip_from 0.0.0.0/0;
16
 
  real_ip_header X-Forwarded-For;
17
 
  add_header X-UA-Compatible "IE=Edge,chrome=1";
18
 
 
19
 
  ##
20
 
  # Rockin Defaults
21
 
  ##
22
 
  sendfile on;
23
 
  tcp_nopush on;
24
 
  tcp_nodelay on;
25
 
  keepalive_timeout 5;
26
 
  types_hash_max_size 2048;
27
 
  server_names_hash_bucket_size 64;
28
 
  server_name_in_redirect off;
29
 
  client_max_body_size 512k;
30
 
  include /etc/nginx/mime.types;
31
 
  default_type application/octet-stream;
32
 
  index index.php index.html
33
 
 
34
 
  ##
35
 
  # Logging Settings
36
 
  ##
37
 
  access_log /var/log/nginx/access.log;
38
 
  error_log /var/log/nginx/error.log;
39
 
 
40
 
  ##
41
 
  # Gzip Settings
42
 
  ##
43
 
  gzip on;
44
 
  gzip_disable "msie6";
45
 
  gzip_vary on;
46
 
  gzip_static on;
47
 
  gzip_proxied any;
48
 
  gzip_comp_level 4;
49
 
  gzip_buffers 16 8k;
50
 
  gzip_http_version 1.1;
51
 
  gzip_types text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
52
 
 
53
 
  ##
54
 
  # Virtual Host Configs
55
 
  ##
56
 
  include /etc/nginx/conf.d/*.conf;
57
 
  include /etc/nginx/sites-enabled/*;
58
 
}