diff options
| author | 2020-07-04 19:16:09 +1000 | |
|---|---|---|
| committer | 2020-07-04 11:16:09 +0200 | |
| commit | 45935945443aa76e04eed8524b0973984c3af3ec (patch) | |
| tree | e74b13fdc811bf31d610ba40a40c5e1b969be343 /docs | |
| parent | d7d39f07368379e7ef1619e52cc50c0920ce8351 (diff) | |
Fixed nginx split paths config issue (#3077)
* Fixed nginx split paths config issue
* Improved config comments.
* s/fixes/see/
* Added link to nginx issue tracker
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/en/admins/10_ServerConfig.md | 5 | ||||
| -rw-r--r-- | docs/fr/users/01_Installation.md | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/docs/en/admins/10_ServerConfig.md b/docs/en/admins/10_ServerConfig.md index 88387274a..5286023f8 100644 --- a/docs/en/admins/10_ServerConfig.md +++ b/docs/en/admins/10_ServerConfig.md @@ -91,7 +91,10 @@ server { fastcgi_split_path_info ^(.+\.php)(/.*)$; # By default, the variable PATH_INFO is not set under PHP-FPM # But FreshRSS API greader.php need it. If you have a “Bad Request” error, double check this var! - fastcgi_param PATH_INFO $fastcgi_path_info; + # NOTE: the separate $path_info variable is required. For more details, see: + # https://trac.nginx.org/nginx/ticket/321 + set $path_info $fastcgi_path_info; + fastcgi_param PATH_INFO $path_info; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } diff --git a/docs/fr/users/01_Installation.md b/docs/fr/users/01_Installation.md index 9c5022f17..2f31e4c77 100644 --- a/docs/fr/users/01_Installation.md +++ b/docs/fr/users/01_Installation.md @@ -119,7 +119,10 @@ server { fastcgi_split_path_info ^(.+\.php)(/.*)$; # Par défaut la variable PATH_INFO n’est pas définie sous PHP-FPM # or l’API FreshRSS greader.php en a besoin. Si vous avez un “Bad Request”, vérifiez bien cette dernière ! - fastcgi_param PATH_INFO $fastcgi_path_info; + # REMARQUE : l'utilisation de la variable $path_info est requis. Pour plus de détails, voir : + # https://trac.nginx.org/nginx/ticket/321 + set $path_info $fastcgi_path_info; + fastcgi_param PATH_INFO $path_info; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } |
