nanobox-io / nanobox-guides

Guides for using languages and frameworks with Nanobox
https://guides.nanobox.io
MIT License
11 stars 19 forks source link

Corrected the nginx static files 'root' directive path #70

Closed michaelmcneela closed 7 years ago

michaelmcneela commented 7 years ago

Requesting a URL of http://hostname/static/hello.png, with the nginx config's static 'root' directive value set originally as '/app/static/', seems to result in nginx incorrectly looking for '/app/static/static/hello.png' (i.e. nginx appends the URL's path to the root directive's value); resulting in 404.

tylerflint commented 7 years ago

@sneakymichael thanks for this!

@notxarb, @sanderson this looks good to me, any reason to not merge this?

sanderson commented 7 years ago

Looks good to me. Merged.