Report this

What is the reason for this report?

how to fix 404 not found nginx export pdf with dompdf

Posted on May 20, 2020

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



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!

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.

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:

https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-16-04

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.