Correction : etc/nginx/site.d/lhc-wiklou/site.conf
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Mon, 18 Apr 2016 14:19:21 +0000 (16:19 +0200)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Mon, 18 Apr 2016 14:19:21 +0000 (16:19 +0200)
etc/nginx/site.d/lhc-wiklou/site.conf

index 5ef383c..5af1074 100644 (file)
@@ -8,9 +8,9 @@ client_max_body_size 10m;
 
 location / {
        # Do this inside of a location so it can be negated
+       rewrite  ^/index.php/(.*)$  /wiki/$1  permanent;
        location ~ \.php$ {
                try_files $uri $uri/ =404; # Don't let php execute non-existent php files
-               rewrite  ^/index.php/(.*)$  /wiki/$1  permanent;
                fastcgi_split_path_info ^(.+\.php)(/.+)$;
                fastcgi_pass unix:/run/php5/fpm/lhc_wiklou;
                fastcgi_index  index.php ;