Hi,
Maybe you can try something like this;
location /private/ {
try_files @private
}
location @private {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
Regards,
Ron
On
use ngx_lua for 401 auth example:
http://chenxiaoyu.org/2012/02/08/nginx-lua-401-auth.html
--
smallfish http://chenxiaoyu.org
On Sun, Aug 25, 2013 at 2:53 PM, Christian Felsing wrote:
> Hello,
>
> I am new to nginx and have following problem:
>
> Nginx should be used as a reverse proxy and conf
For serving the PHP scripts, I use this location
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
now I want to keep a folder outside the public folder to be served