Solución al error Request Entity Too Large en Nginx

Soluciona el error 413 de Nginx aumentando client_max_body_size en Ubuntu. Guía rápida para editar nginx.conf y subir archivos grandes con seguridad.

9 sept 2025 • 2 min read • Q2BSTUDIO Team

Inteligencia-Artificial-

¿Te aparece el error 413 Request Entity Too Large en Nginx al subir archivos o enviar formularios grandes? Este error se produce porque Nginx limita por defecto el tamao del cuerpo de la solicitud a 1M salvo que se configure lo contrario. A continuacion explicamos de forma rapida y segura como aumentar el limite de subida en Nginx sobre Ubuntu para que tu sitio acepte archivos grandes y mejore la experiencia de usuario.

1. Accede al archivo de configuracion de Nginx. Abre una terminal y edita el fichero principal con privilegios de administrador: sudo vim /etc/nginx/nginx.conf

2. Localiza y edita el bloque adecuado. Busca el bloque http (suele estar al principio del archivo). Dentro de ese bloque añade o modifica la directiva para aumentar el tamano maximo del cuerpo de la solicitud, por ejemplo para permitir hasta 100M: client_max_body_size 100M; Si prefieres limitar el cambio a una aplicacion o ruta concreta por razones de seguridad, puedes colocar esa misma linea dentro de un bloque server o location concreto.

3. Guardar y salir de vim. Tras editar, guarda y cierra vim con el teclado: Para guardar presiona Esc y escribe :w Para salir escribe :q Para guardar y salir presiona Esc y escribe :wq

4. Recargar Nginx para aplicar los cambios. Comprueba la sintaxis y recarga Nginx sin detener el servicio: sudo nginx -t Comprueba que no hay errores y luego ejecuta sudo systemctl reload nginx para aplicar los cambios en caliente.

Consejos practicos: ajusta el valor segun tus necesidades reales y la capacidad del servidor; para cargas muy grandes tambin revisa timeout y configuraciones del proxy si usas reverse proxy o servicios en cloud; y considera limitar la directiva por server o location para reducir la superficie de ataque.

En Q2BSTUDIO somos una empresa de desarrollo de software y aplicaciones a medida que tambien ofrece consultoria en infraestructura y configuracion de servidores para produccion. Si necesitas soporte para optimizar tus servidores Nginx, integrar soluciones en la nube o desplegar aplicaciones con requisitos de carga elevados, podemos ayudarte a implementar buenas practicas y seguridad en tu stack.

Ofrecemos servicios completos que incluyen software a medida, aplicaciones a medida, inteligencia artificial aplicada, ciberseguridad, servicios cloud aws y azure, servicios inteligencia de negocio y soluciones como agentes IA y power bi para mejorar la toma de decisiones. Para proyectos de desarrollo y despliegue de aplicaciones consulta nuestra pagina de desarrollo de aplicaciones y software multiplataforma y si tu enfoque es infraestructura en la nube revisa nuestros servicios cloud en AWS y Azure.

Si necesitas que ajustemos la configuracion de Nginx, automatizar despliegues, integrar IA para empresas o mejorar la seguridad con pentesting, contacta con Q2BSTUDIO para una solucion a medida y soporte profesional.

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Artificial intelligence

AI agents, chatbots, and intelligent assistants that automate tasks and serve your customers 24/7 to improve the efficiency of your business.

More info

Software Development

Web, mobile, and desktop applications, intranets, e-commerce, SaaS, and management platforms designed for your company's specific needs.

More info

Cloud services

Migration, infrastructure, managed hosting, high availability, and security on Microsoft Azure and Amazon Web Services to help your business scale without limits.

More info

Cybersecurity and pentesting

Security audits, penetration testing and protection of applications, data and infrastructure on-premise and cloud, with ethical hacking and regulatory compliance.

More info

Business Intelligence

Dashboards and data analysis with Power BI: we integrate your sources, design dashboards and KPIs and turn your data into decisions.

More info

Process automation

We automate repetitive tasks and connect your applications with n8n, Power Automate, Make, and RPA, eliminating manual work and increasing productivity.

More info

Training for Companies

We train your teams in technology with criteria: web development, databases, Git, best practices and security, automation with n8n, artificial intelligence for companies and creation of AI solutions with Azure AI Foundry.

More info

Code Auditing

We audit the code that you, your team or an AI create: we tell you what is good and what to improve, we secure it and make it ready for production, web or app.

More info

AI Image Generation

We create for you the images that your business needs with artificial intelligence: product, networks, advertising, illustration and avatars. You tell us what you want and we deliver it ready to use.

More info

AI Video Generation

We create videos with artificial intelligence for you: promotional, networking, virtual presenters, dubbing and animations. You tell us the idea and we will deliver it assembled and ready to publish.

More info

AI Conversational Avatars

We create conversational avatars with AI – digital humans with a face and voice – that serve your customers and teams with the knowledge of your company, on your website, interactive monitors, WhatsApp or Teams.

More info

Online Marketing and AI

Google Ads, Meta Ads, LinkedIn Ads and AI Engine Positioning (GEO/AEO): we attract customers and make your brand appear where they search for you, also on ChatGPT, Gemini and Perplexity.

More info

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.

Live Chat