Modifications : etc/nginx/site.d/lhc-wiklou/site.conf
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Wed, 25 Sep 2013 09:37:30 +0000 (11:37 +0200)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Wed, 25 Sep 2013 09:37:30 +0000 (11:37 +0200)
etc/nginx/site.d/lhc-wiklou/site.conf

index 7443e67..f0dadc4 100644 (file)
@@ -19,4 +19,9 @@ location ~ \.php$ {
 
        fastcgi_pass unix:/run/php5/fpm/lhc_wiklou;
 }
+location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
+       try_files $uri /index.php;
+       expires max;
+       log_not_found off;
+}
 # vim: ft=sh