Welcome! Log In Create A New Profile

Advanced

Re: How to serve PHP files outside the public folder?

Francis Daly
August 26, 2013 06:14PM
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 francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

How to serve PHP files outside the public folder?

etrader August 25, 2013 03:14AM

Re: How to serve PHP files outside the public folder?

ron ramos August 25, 2013 08:00PM

Re: How to serve PHP files outside the public folder?

Francis Daly August 26, 2013 06:14PM

Re: How to serve PHP files outside the public folder?

Francis Daly August 26, 2013 06:16PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 208
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready