History: Nginx
Source of version: 8
Copy to clipboard
! Nginx [http://www.stevestreeting.com/2012/05/09/apache-to-nginx-php-fpm-part-1/|http://www.stevestreeting.com/2012/05/09/apache-to-nginx-php-fpm-part-1/] [http://www.stevestreeting.com/2012/05/24/apache-to-nginx-part-2/|http://www.stevestreeting.com/2012/05/24/apache-to-nginx-part-2/] ! PHP !! NetBSD PHP The original NetBSD 6.0 nginx.conf has got a line {CODE()}fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;{CODE} This leads to a __File not found__ error page, and the line must be replaced with {CODE()}fastcgi_param SCRIPT_FILENAME $request_filename;{CODE} or {CODE()}fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;{CODE} to enable PHP. !! Debian PHP The same error as in NetBSD was observed as Debian 6.0 (Squeeze), the file is: /etc/nginx/sites-available/default. The problem is solved by using dotdeb: [http://www.howtoforge.com/installing-php-5.3-nginx-and-php-fpm-on-ubuntu-debian|http://www.howtoforge.com/installing-php-5.3-nginx-and-php-fpm-on-ubuntu-debian] !! PHP General ((Nginx-php-fpm)) !!Nginx SEO-friendly URLs If feature sefurl is enabled (Preference name: feat{ure_sefurl) then nginx needs the following rewrite rule: CODE()}try_files $uri $uri/ /route.php?$uri&$args;{CODE}