Modifications: config nginx du Wiklou suite a la migration vers la derniere lts
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Mon, 8 Sep 2014 07:18:13 +0000 (09:18 +0200)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Mon, 8 Sep 2014 07:18:13 +0000 (09:18 +0200)
etc/nginx/site.d/lhc-wiklou/site.conf

index 861ddf8..d53fd3c 100644 (file)
@@ -7,8 +7,13 @@ client_body_buffer_size 8k;
 client_max_body_size 10m;
 
 location / {
-       index index.html index.htm index.php;
- }
+        try_files $uri $uri/ @rewrite;
+}
+location @rewrite {
+        rewrite ^/(.*)$ /index.php?title=$1&$args;
+}
+
 location ~ \.php$ {
        include /etc/nginx/conf.d/fastcgi.conf;
        fastcgi_index  index.php ;