From 1ed103d2bedec849fbb6258f59ce445f485eb42d Mon Sep 17 00:00:00 2001 From: Paolo Escobar Date: Fri, 15 Jan 2016 09:47:27 +0100 Subject: [PATCH] Edit nginx configuration to allow access to functions.js.php for Jirafeau v1.1 --- conf/nginx.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index ddface4..627d268 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -6,6 +6,16 @@ location YNH_WWW_LOCATION { client_max_body_size 10G; index index.php; try_files $uri $uri/ index.php; + + location ~ ^YNH_WWW_PATH/lib/functions.js.php { + fastcgi_split_path_info ^(.+?\.php)(/.*)$; + fastcgi_pass unix:/var/run/php5-fpm-jirafeau.sock; + fastcgi_index index.php; + include fastcgi_params; + fastcgi_param REMOTE_USER $remote_user; + fastcgi_param PATH_INFO $fastcgi_path_info; + fastcgi_param SCRIPT_FILENAME $request_filename; + } location ~ ^YNH_WWW_PATH/lib/.*\.php { deny all; }