Welcome! Log In Create A New Profile

Advanced

How to serve PHP files outside the public folder?

August 25, 2013 03:14AM
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 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?
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: 111
Record Number of Users: 6 on August 08, 2016
Record Number of Guests: 386 on August 02, 2016
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready