title: Can someone help me with reverse proxy with Elastic Beanstalk?
body: <p>I've successfully setup a codepipeline to deploy elasticbeanstalk with tomcat server.</p>
  <p>Now, the issue is the nginx conf for reverse proxy, which I've tried with .platform/nginx/nginx.conf to override the configuration. but the server is not behaving as it should be, is there any think i'm missing?</p>
  <p><strong>nginx.conf</strong></p>
  <pre><code>server {
      listen       80;
      listen       [::]:80;
  
      root         /usr/share/nginx/html;
  
      location / {
          proxy_set_header X-Forwarded-Host $host;
          proxy_set_header X-Forwarded-Server $host;
          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  
          proxy_pass http://127.0.0.1:8080;
  
          proxy_read_timeout 1800;
          proxy_connect_timeout 1800;
          proxy_send_timeout 1800;
          send_timeout 1800;
      }
      # Load configuration files for the default server block.
      include /etc/nginx/default.d/*.conf;
  
      error_page 404 /404.html;
      location = /404.html {
      }
  
      error_page 500 502 503 504 /50x.html;
      location = /50x.html {
      }
  }
  </code></pre>