Report this

What is the reason for this report?

Problem with public folder in laravel

Posted on February 4, 2014

I have a LAMP stack on Ubuntu. I have Laravel 4 correctly installed on var/www folder

In the 000-default.conf file i have the DocumentRoot set to var/www/public

Everything works when i try to access my site i get the front page. But the assets in the public folder are not loarde i get 404.

So my questio is i’m missing some configuration? It’s because only the public folder of Laravel is included in the DocumentRoot?



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.

It looks like your DocumentRoot is set correctly. Could you post the rest of the config for your virtual host in 000-default.conf?

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.