On Sun, Aug 25, 2013 at 03:14:55AM -0400, etrader wrote:

> now I want to keep a folder outside the public folder to be served as a
> 
> location /private/ {
> /* serving static files from /private/$server_name/ */
> location ~ \.php$ {
> /* serving PHP scripts from /private/$server_name/ */
> }
> }
> 
> How should set this location to serve the files from outside the public
> folder?

http://nginx.org/r/location

Probably one of "location ^~ /private/"; or else "location ~
/private/*.\php$" before your "location ~ \.php$", should work.

        f
-- 
Francis Daly        [email protected]

_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to