title: nginx.conf settting for django
body: <p>On my ubuntu server i would setting nginx.conf for work with my django app
  I setup che nginx.conf file like this:</p>
  
  <pre><code>user root;
  worker_processes auto;
  error_log /var/log/nginx/error.log;
  pid /var/run/nginx.pid;
  
  # Load dynamic modules. See /usr/share/nginx/README.dynamic.
  include /usr/share/nginx/modules/*.conf;
  
  events {
      worker_connections 1024;
  }
  
  http {
      log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                    '$status $body_bytes_sent "$http_referer" '
                    '"$http_user_agent" "$http_x_forwarded_for"';
  
      access_log  /var/log/nginx/access.log  main;
  
      sendfile            on;
      tcp_nopush          on;
  
      tcp_nodelay         on;
      keepalive_timeout   65;
      types_hash_max_size 2048;
  
      include             /etc/nginx/mime.types;
      default_type        application/octet-stream;
  
      # Load modular configuration files from the /etc/nginx/conf.d directory.
      # See http://nginx.org/en/docs/ngx_core_module.html#include
      # for more information.
      include /etc/nginx/conf.d/*.conf;
  
      index   index.html index.htm;
  
      server {
          listen       80 default_server;
          listen       [::]:80 default_server;
          server_name  34.233.212.246;
          root         /usr/share/nginx/html;
          #root           /home/ec2-user/carrera/podium/static;
  
          # Load configuration files for the default server block.
          include /etc/nginx/default.d/*.conf;
  
          location / {
              proxy_pass http://127.0.0.1:8000;
              #proxy_set_header X-Forwarded-Host $server_name;
              #proxy_set_header X-Real-IP $remote_addr;
              add_header P3P 'CP="ALL DSP COR PSAa PSDa OUR NOR ONL UNI COM NAV"';
              add_header P3P 'policyref="/w3c/p3p.xml", CP="IDC DSP COR ADM DEVi TAIi PSA PSD $
          }
  
          # redirect server error pages to the static page /40x.html
          #
          error_page 404 /404.html;
          location = /40x.html {
          }
  
          # redirect server error pages to the static page /50x.html
          #
          error_page 500 502 503 504 /50x.html;
          location = /50x.html {
          }
      }
  
  }
  </code></pre>
  
  <p>but when i run service the server return this error:</p>
  
  <blockquote>
    <p>unexpected end of file, expecting ";" or "}" in /etc/ng$</p>
  </blockquote>
  
  <p>at the end of the file</p>
  
  <p>Anyone can help me please?</p>
  
  <p>So many thanks in advance</p>