Re: php not working from aliased subdir

2017-02-02 Thread Francis Daly
On Wed, Feb 01, 2017 at 06:53:23PM +0200, Nikolaos Milas wrote: > On 31/1/2017 10:13 μμ, Francis Daly wrote: Hi there, Good that you got it working for you. > By the way, is there some method to define a block of code which can > be included at various places? In stock nginx.conf? Not, not as a

Re: php not working from aliased subdir

2017-02-01 Thread Nikolaos Milas
On 31/1/2017 10:13 μμ, Francis Daly wrote: Replace the line with fastcgi_param SCRIPT_FILENAME $request_filename; Thank you Francis. Your suggestion has indeed solved the issue! You rock! Comparehttp://nginx.org/r/$fastcgi_script_name with http://nginx.org/r/$request_filename to se

Re: php not working from aliased subdir

2017-01-31 Thread Francis Daly
On Tue, Jan 31, 2017 at 08:43:23AM +0200, Nikolaos Milas wrote: > On 19/1/2016 10:58 μμ, Francis Daly wrote: Hi there, > I have tried various things with the aliased directories, but I am > still having the problem. > My logic is to use a scheme like (see full details in the attached config): T

Re: php not working from aliased subdir

2017-01-30 Thread Nikolaos Milas
On 19/1/2016 10:58 μμ, Francis Daly wrote: Good luck with it, Thank you Francis and everyone for your feedback. I have tried various things with the aliased directories, but I am still having the problem. I hope someone can help me with my current config, which I attach, together with the

Re: php not working from aliased subdir

2016-01-19 Thread Francis Daly
On Tue, Jan 19, 2016 at 11:21:46AM +0200, Nikolaos Milas wrote: Hi there, > location ~ /newlocation/(.*)\.php$ { > > alias /var/websites/externaldir$1.php; > > fastcgi_cache off; > > try_files $uri =404; > include /etc/nginx/fastcgi_params; > This config

php not working from aliased subdir

2016-01-19 Thread Nikolaos Milas
Hello, I have been adding (to my nginx config) directories outside of the default "root" tree like: location ~ /newlocation(.*) { alias /var/websites/externaldir$1; } This works OK. however, I find that the above config does not process php files. I tried adding (before the