diff --git a/admin_manual/installation/nginx_configuration.rst b/admin_manual/installation/nginx_configuration.rst index 4d19056a2..6f8ba3340 100644 --- a/admin_manual/installation/nginx_configuration.rst +++ b/admin_manual/installation/nginx_configuration.rst @@ -124,11 +124,29 @@ Suppressing Log Messages If you're seeing meaningless messages in your logfile, for example `client denied by server configuration: /var/www/data/htaccesstest.txt -_`, add this section to +`_, add this section to your Nginx configuration to suppress them:: location = /data/htaccesstest.txt { allow all; log_not_found off; access_log off; - } \ No newline at end of file + } + +JavaScript (.js) or CSS (.css) files not served properly +-------------------------------------------------------- + +A common issue with custom nginx configs is that JavaScript (.js) +or CSS (.css) files are not served properly leading to a 404 (File not found) +error on those files and a broken webinterface. + +This could be caused by the: + + location ~* \.(?:jpg|jpeg|gif|bmp|ico|png|css|js|swf)$ { + +block shown above not located **below** the + + location ~ \.php(?:$|/) { + +block. Other custom configurations like caching JavaScript (.js) +or CSS (.css) files via gzip could also cause such issues. \ No newline at end of file