Created
August 18, 2015 21:28
-
-
Save LasseRafn/84b8a9f398b05ce8cf57 to your computer and use it in GitHub Desktop.
Example Laravel Nginx config to avoid 404-images to be loaded by routes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
location ~* \.(gif|jpg|jpeg|ico|png|svg)$ { | |
# Do jack shit. | |
} | |
location / { | |
try_files $uri $uri/ /index.php$is_args$args; | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Jeg bruger det her;
Og har ikke oplevet dit issue med ovenstående.
Har 2 locations da jeg nogen gange skifter mellem HHVM og PHP5-FPM til testing. Den ene er altid kommenteret ud som du kan se.