Thanks for the help, Igor, but i fixed it by myself. I forgot to delete this rule in the default config file which results in missing css files etc. : # serve static files directly location ~* ^.+\.(jpg|jpeg|gif|css|png|js|ico)$ { root /var/www/nginx-testing; access_log off; expires 30d; break; }