how to fix 404 not found nginx export pdf with dompdf

As i use laravel and dompdf for my website, it works on local development

but when i push it on my server, it always return this error when clicking export.

when i checked my laravel.log it doesnt show what the error is

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi @erandadava,

I’ll recommend checking your Nginx error log, this seems to be an issue with Nginx rather than Laravel. Additionally, see if you haven’t missed something in your Nginx configuration file. If you are unsure what needs to be added in it or how it should look, I’ll recommend checking out the following article about it:

If you are still unsure please do post what you see in the Nginx error log and how your configuration file does look like.

Regards, KDSys