server_name
- www.heureux-cyclage.org
- heureux-cyclage.org
- devel.heureux-cyclage.org;
+ www.heureux-cyclage.org;
root /home/www/data/lhc-www/www;
index index.php;
location ~^/(tmp|config)/{
return 403;
}
+location ~ \.html$ {
+ log_not_found off;
+}
location ~ \.php$ {
include /etc/nginx/conf.d/fastcgi.conf;
fastcgi_index index.php ;
fastcgi_pass unix:/run/php5/fpm/lhc_www;
}
+error_page 404 = @spip;
+
+location @spip {
+ rewrite ^/(.*)(\.html)?$ /spip.php?url_propre=$1&$args last;
+}
# vim: ft=sh