I managed to have something working by adding the complete path before
each location instructions like on this thread [1]
It would have been great to define a "new root" instead of full path
each times, but whatever.
Regards,
[1] : https://bbs.archlinux.org/viewtopic.php?pid=1408342#p1408342
* Jim Ohlstein le [25-04-2014 14:17:33 -0400]:
> Hello,
>
> On 4/25/14, 1:17 PM, Thuban wrote:
> >>> root /var/www/mysite;
> >>> location /owncloud {
> >>> alias /var/www/mysite/owncloud;
> >>> include /etc/ngi
location ~ ^(.+?\.php)(/.*)?$ {
try_files $1 = 404;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$1;
fastcgi_param PATH_INFO $2;
fastcgi_param HTTPS on;
fastcgi_pass unix:/var/run/php5-fpm.sock;
}
--
,--.
: /` )
cloud need `location` rules too, so I finally
have "location /example is outside location" errors.
How can I configure nginx for this?
Regards,
--
,--.
: /` ) Thuban
| `-'PubKey : http://yeuxdelibad.net/Divers/thuban.pub
\_ KeyID : 0x54CD2F2F
Envoyé à partir de mon