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
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
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
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
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
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