1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/agendav_ynh.git synced 2024-09-03 20:36:12 +02:00

Document another workaround for the nginx bug 97

This commit is contained in:
Julien Malik 2016-08-30 10:43:24 +02:00
parent c7b611bf51
commit fdc915a27f

View file

@ -10,6 +10,13 @@ location {PATH}/ {
# see: https://trac.nginx.org/nginx/ticket/97
try_files $uri $uri/ {PATH}/{PATH}/index.php$is_args$args;
# Another alternative to the weird try_files is to use a rewrite, like this :
#
#  if (-f $request_filename) {
# break;
# }
#  rewrite (.*) {LOCATION}/index.php$request_uri;
location ~ ^{PATH}/index\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php5-fpm-agendav.sock;