# ask-community-for-troubleshooting

Jason Reslock

06/23/2021, 1:53 PM
Good morning! Has anyone run into trouble using nginx as a reverse-proxy for airbyte? I am able to get to airbyte if I bypass nginx just fine but when I try to access via nginx I am seeing
400 Bad Request
errors. The configuration is fairly simple in that I am `proxy_pass`'ing everything to http://localhost:8000
This was due to my nginx config trying to set a bunch of headers that were not recognized by the app.

[DEPRECATED] Marcos Marx

06/23/2021, 7:30 PM
@Jason Reslock so you find the solution? octavia thinking

Jason Reslock

06/23/2021, 8:19 PM
I did. I just had a simple
instead of setting a bunch of headers. Old:
Copy code
location / {
            proxy_pass  <http://localhost:8080>;
            proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
            proxy_set_header        Accept-Encoding "";
            proxy_set_header        Host            $host;
            proxy_set_header        X-Real-IP       $remote_addr;
            proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header        X-Forwarded-Proto $scheme;
            add_header              Front-End-Https  on;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
            proxy_set_header Host $host;
            proxy_redirect     off;
Copy code
location / {
            proxy_pass  <http://localhost:8000>;
I don't know which of the headers was causing trouble but removing them all seems to have fixed my issue for now.