Commit 2379253b by Feanil Patel

Merge pull request #987 from edx/feanil/static_nginx

For static content, only match static at the root of the URI.
parents ded123ba 37fecfe6
......@@ -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