From cc6c3409b8d97448b8ee471069c32486a70fdec8 Mon Sep 17 00:00:00 2001 From: RealRancor Date: Sat, 3 Oct 2015 17:32:15 +0200 Subject: [PATCH] Note that expires block should be below the php block --- .../installation/nginx_configuration.rst | 22 +++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) 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