Loading...
 
Skip to main content

History: Nginx

Source of version: 9

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: feature_sefurl)
then nginx needs the following rewrite rule:
{CODE()}try_files $uri $uri/ /route.php?$uri&$args;{CODE}
        

History

Advanced
Information Version
Benoit Grégoire 23
Benoit Grégoire 22
Benoit Grégoire 21
Benoit Grégoire 20
Benoit Grégoire Merge forced https and base configuration for easier maintenance 19
Fabio Montefuscolo 18
luciash d' being 🧙 typos 17
Fabio Montefuscolo 16
Fabio Montefuscolo 15
Fabio Montefuscolo 14
Fabio Montefuscolo 13
Fabio Montefuscolo 12
rjsmelo 11
Jean-Marc Libs 10
Jean-Marc Libs 9
Jean-Marc Libs 8
Frank Guthausen Part 1 7
Frank Guthausen Debian, dotdeb and php-fpm 6
Frank Guthausen link to php-fpm 5
Frank Guthausen PHP on Nginx NetBSD II 4
Frank Guthausen PHP on Nginx NetBSD 3
Marc Laporte 2
Marc Laporte 1