From 5bc1c65b211027b7d107c50c85c3a3592db098aa Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 26 Sep 2014 16:25:07 +0100 Subject: [PATCH] try files --- install-freedombone.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-freedombone.sh b/install-freedombone.sh index ea256d97..3493de96 100755 --- a/install-freedombone.sh +++ b/install-freedombone.sh @@ -1993,7 +1993,7 @@ function install_wiki { echo " # server, which is entirely possible with php-fpm/php-fcgi." >> /etc/nginx/sites-available/$WIKI_DOMAIN_NAME echo " # Comment the 'try_files' line out if you set up php-fpm/php-fcgi on" >> /etc/nginx/sites-available/$WIKI_DOMAIN_NAME echo " # another machine. And then cross your fingers that you won't get hacked." >> /etc/nginx/sites-available/$WIKI_DOMAIN_NAME - echo " try_files $uri /dev/null =404;" >> /etc/nginx/sites-available/$WIKI_DOMAIN_NAME + echo " try_files $uri $uri/ /index.php;" >> /etc/nginx/sites-available/$WIKI_DOMAIN_NAME echo ' # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini' >> /etc/nginx/sites-available/$WIKI_DOMAIN_NAME echo ' fastcgi_split_path_info ^(.+\.php)(/.+)$;' >> /etc/nginx/sites-available/$WIKI_DOMAIN_NAME echo ' # With php5-cgi alone:' >> /etc/nginx/sites-available/$WIKI_DOMAIN_NAME