diff --git a/tutor/templates/apps/nginx/cms.conf b/tutor/templates/apps/nginx/cms.conf index a9984ea..cacb778 100644 --- a/tutor/templates/apps/nginx/cms.conf +++ b/tutor/templates/apps/nginx/cms.conf @@ -21,14 +21,10 @@ server { {% endif %} client_max_body_size 100M; - + server_tokens off; + rewrite ^(.*)/favicon.ico$ /static/images/favicon.ico last; - # Disables server version feedback on pages and in headers - server_tokens off; - # Prevent invalid display courseware in IE 10+ with high privacy settings - add_header P3P 'CP="Open edX does not have a P3P policy."'; - location @proxy_to_cms_app { proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Port $server_port; diff --git a/tutor/templates/apps/nginx/lms.conf b/tutor/templates/apps/nginx/lms.conf index e56b2d4..59e0dfc 100644 --- a/tutor/templates/apps/nginx/lms.conf +++ b/tutor/templates/apps/nginx/lms.conf @@ -21,14 +21,10 @@ server { {% endif %} client_max_body_size 4M; + server_tokens off; rewrite ^(.*)/favicon.ico$ /static/images/favicon.ico last; - # Disables server version feedback on pages and in headers - server_tokens off; - # Prevent invalid display courseware in IE 10+ with high privacy settings - add_header P3P 'CP="Open edX does not have a P3P policy."'; - location @proxy_to_lms_app { proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Port $server_port;