Tested on Windows 7 64 Ultimate, nginx-1.7.1.3-RedKnight + PHP Farm In the Browser : works excellent
In the WX Client via Rest : DL service error access.log: 192.168.---.--- - testuser [23/Oct/2014:13:48:56 +0200] "POST /dl/rest.php/newticket HTTP/1.1" 401 5 "-" "dl-wx/0.10" "-" PHP LOG: [23-Oct-2014 13:48:56 ------/------] DL: error: [192.168.---.---] invalid credentials # # # # # # # # # # # # # # # # # # # # # # # # # # # ORIGINAL MESSAGE IS FOLLOWING # # # # # # # # # # # # # # # # # # # # # # # # # # MsgID: 5447cd25....@thregr.org From: Yuri D'Elia <wav...@thregr.org> Date: Wed, 22 Oct 2014 17:28:37 +0200 Subject: Re: [dl-ticket-service] Nginx + rest.php > I just tried a stock DL 0.15 using nginx on Debian. > When installed as a subdirectory, I could get DL to work with the following: > > location ^~ /dl { > # Protect the include directories > location ~ ^/dl(?:/|/.*/)include { > deny all; > } > > index index.php index.html; > try_files $uri $uri/ =404; > > # Enable PHP > location ~ \.php(?:$|/) { > include fastcgi_params; > > # Set maximum body size (should be the same as PHP's post_max_size) > client_max_body_size 512M; > > # Setup PATH_INFO > fastcgi_split_path_info ^(.+\.php)(/.+)$; > try_files $fastcgi_script_name =404; > > set $path_info $fastcgi_path_info; > fastcgi_param PATH_INFO $path_info; > fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; > > fastcgi_index index.php; > fastcgi_pass unix:/var/run/php5-fpm.sock; > } > } > > Notice the order of the location directives to protect the include > directories, and also the PHP location matching ``\.php(?:$|/)'' in order to > allow PATH_INFO to route requests properly. > > After that I didn't need to forward any header explicitly, and it works fine. > Let me know if this helps. > > >