<div dir="ltr">Hi,<div><br></div><div>Maybe you can try something like this;</div><div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">location /private/ {</span><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">    try_files @private</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px">}</span></div><div><br></div><div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">location @private {</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">fastcgi_pass   </span><a href="http://127.0.0.1:9000/" target="_blank" style="font-family:arial,sans-serif;font-size:13px">127.0.0.1:9000</a><span style="font-family:arial,sans-serif;font-size:13px">;</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">fastcgi_index  index.php;</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_</span><span style="font-family:arial,sans-serif;font-size:13px">name;</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">include /etc/nginx/fastcgi_params;</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">}</span><br>
</div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Regards,</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Ron</span></div>
<div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Aug 25, 2013 at 3:14 PM, etrader <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us" target="_blank">nginx-forum@nginx.us</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">For serving the PHP scripts, I use this location<br>
<br>
location ~ \.php$ {<br>
fastcgi_pass   <a href="http://127.0.0.1:9000" target="_blank">127.0.0.1:9000</a>;<br>
fastcgi_index  index.php;<br>
fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;<br>
include /etc/nginx/fastcgi_params;<br>
}<br>
<br>
now I want to keep a folder outside the public folder to be served as a<br>
<br>
location /private/ {<br>
/* serving static files from /private/$server_name/ */<br>
location ~ \.php$ {<br>
/* serving PHP scripts from /private/$server_name/ */<br>
}<br>
}<br>
<br>
How should set this location to serve the files from outside the public<br>
folder?<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,242193,242193#msg-242193" target="_blank">http://forum.nginx.org/read.php?2,242193,242193#msg-242193</a><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br></div>