From: Ludovic CHEVALIER Date: Mon, 8 Sep 2014 07:18:13 +0000 (+0200) Subject: Modifications: config nginx du Wiklou suite a la migration vers la derniere lts X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/Special:FilePath/%40%20%20%20of%20publication%20requests%20and%20article%20validations.%27%2C%20%27info_fichiers_authent%27%20=%3E%20%27Authentication%20file?a=commitdiff_plain;h=c38e6b3f45945499195ffaa672989cbdc8780006;p=lhc%2Fateliers.git Modifications: config nginx du Wiklou suite a la migration vers la derniere lts --- diff --git a/etc/nginx/site.d/lhc-wiklou/site.conf b/etc/nginx/site.d/lhc-wiklou/site.conf index 861ddf8..d53fd3c 100644 --- a/etc/nginx/site.d/lhc-wiklou/site.conf +++ b/etc/nginx/site.d/lhc-wiklou/site.conf @@ -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 ;