Commit 37fecfe6 by Feanil Patel

For static content, only match static at the root of the URI.

parent ded123ba
......@@ -69,7 +69,7 @@ server {
{% include "robots.j2" %}
# Check security on this
location ~ /static/(?P<file>.*) {
location ~ ^/static/(?P<file>.*) {
root {{ edxapp_data_dir }};
try_files /staticfiles/$file /course_static/$file =404;
......
......@@ -49,7 +49,7 @@ server {
{% include "robots.j2" %}
# Check security on this
location ~ /static/(?P<file>.*) {
location ~ ^/static/(?P<file>.*) {
root {{ edxapp_data_dir}};
try_files /staticfiles/$file /course_static/$file =404;
......
......@@ -65,7 +65,7 @@ server {
{% include "robots.j2" %}
# Check security on this
location ~ /static/(?P<file>.*) {
location ~ ^/static/(?P<file>.*) {
root {{ edxapp_data_dir }};
try_files /staticfiles/$file /course_static/$file =404;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment