Modifications: config nginx du Wiklou suite a la migration vers la derniere lts
[lhc/ateliers.git] / 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 ;