nginx static content location root fixed
I just played with this and nginx is keeping the **/static/** in the requesting url and then attempting to find a folder on the file system that looks like **/full/path/to/realms/static/static/...** This should fix that.
This commit is contained in:
parent
a3e4f937b2
commit
cbde8decf3
|
@ -126,7 +126,7 @@ Put the following sample configuration in that file.
|
||||||
# Settings to by-pass for static files
|
# Settings to by-pass for static files
|
||||||
location ^~ /static/ {
|
location ^~ /static/ {
|
||||||
# Example:
|
# Example:
|
||||||
root /full/path/to/realms/static/;
|
root /full/path/to/realms/;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
|
Loading…
Reference in a new issue