Re: Nginx multiple php sites

2014-07-18 Thread Francis Daly
On Tue, Jul 15, 2014 at 09:15:51AM -0400, devsathish wrote: Hi there, > example.com => /var/www/example/index.php > example.com/blog => /var/www/example/blog/index.php > > I made the first one to work using the following code. Can someone help me > to modify this config to fit the second requi

Re: Re[2]: Nginx multiple php sites

2014-07-15 Thread B.R.
If you use try_files with fastcgi_split_path_info, do not try to set PATH_INFO with $fastcgi_path_info directly as it will be empty. If PATH_INFO is not set (as it might not be required like you point it out) and stick with the $fastcgi_script_name of the split directive, then the PATH_INFO 2-line

Re[2]: Nginx multiple php sites

2014-07-15 Thread wishmaster
--- Original message --- From: "B.R." Date: 15 July 2014, 19:16:19 > > > I also think CodeIgniter needs the PATH_INFO environment variable set. This is not true, as you can choose of using PATH_INFO, QUERY_STRING, REQUEST_URI and so on, so this tricks with path_info is excessiv

Re: Nginx multiple php sites

2014-07-15 Thread B.R.
I also think CodeIgniter needs the PATH_INFO environment variable set. Moreover, there is a potential security breach in your current configuration . The recommended way (when u

Re: Nginx multiple php sites

2014-07-15 Thread Anoop Alias
Hi, Simply changing server_name, root should work . If you are using a different port for different fastcgi process pool you have to change that too. -- *Anoop P Alias* GNUSYS ___ nginx mailing list nginx@nginx.org http://mailman

Re: Nginx multiple php sites

2014-07-15 Thread Anoop Alias
Perhaps this didnt work for you because you have root /var/www/example/; in the php location . Move up the root in location / to the server {} level and delete the root from php location . This is also the best approach as per nginX docs -- *Anoop P Alias* GNUSYS ___

Nginx multiple php sites

2014-07-15 Thread devsathish
Hi, I've been searching (last two days) to find how to setup multiple php sites using nginx. Couldn't find any documentation around it, hence writing it here. I've two codeignetor (php framework) in two different folders and served from same domain. For an example, example.com => /var/www/example