# Improve default Nginx config for Inertia

**Project:** Servers | **Votes:** 1
**URL:** https://roadmap.ploi.io/projects/1-server-level-requests/items/1644-improve-default-nginx-config-for-inertia

---

Always when I deploy a new Laravel project using Inertia + vue I get a 502 error on the site. This is because Inertia tries to send a certain header that is too big for the default Nginx config that ploi provides. So I have to add this line: "fastcgi_buffer_size 32k;" in the site's config, in the `location ~ \.php$` block.

Because I do not deploy a new Inertia site daily I'm always searching for the bug because I forgot. I could imagine that other people also could run into this issue. Could we maybe add this to the default Nginx config for a site?
