Re: PHP handling where URI contains a path, index is in root

2020-05-27 Thread Moshe Katz
Your problem is that you are adding an extra question mark. >From the docs: > $is_args > “?” if a request line has arguments, or an empty string otherwise Take the extra question mark out of your try_files line. It should look like this: try_files $uri $uri/ /index.php$is_args$args; Moshe

PHP handling where URI contains a path, index is in root

2020-05-27 Thread petecooper
Hello. I run a PHP + MySQL content management system on Nginx (1.19.0 at time of writing) and an issue has arisen with the way I'm handing PHP files in some situations. The issue appears to manifest with queries when they are prepended by a path, where a `?` is prepended. If the queries exist in

Using custom glibc for compilation

2020-05-27 Thread Mahmood Naderan
Hi I want to install nginx with a custom glibc version. I have installed that from source and for nginx, I tried $ GLIBCDIR=/opt/glibc-2.23-install $ ./configure --prefix=/home/mahmood/kernel-4.19.119/glibc223/install --with-ld-opt="-Wl,--emit-relocs" $ make && make install However, when I

Re: PHP handling where URI contains a path, index is in root

2020-05-27 Thread petecooper
Moshe Katz Wrote: --- > Your problem is that you are adding an extra question mark. > > From the docs: > > > $is_args > > “?” if a request line has arguments, or an empty string otherwise > > > Take the extra question mark out of your

Re: Quick question on NGINX cache

2020-05-27 Thread Jore
Hi everyone, Just chasing up below, if anyone has any suggestions? So to recap, the situation is, I have nginx running Wordpress with the Hypercache plugin but only the homepage is cached, other pages "miss" according to page headers. Here is contents of the sites-enabled conf in question:

Re: Problems with PROXY_PROTOCOL in ngx_stream

2020-05-27 Thread proxyuser
Azure added its own extension to proxy protocol v2 PP2_TYPE_AZURE (0xEE) - https://docs.microsoft.com/en-us/azure/private-link/private-link-service-overview#getting-connection-information-using-tcp-proxy-v2 Posted at Nginx Forum: https://forum.nginx.org/read.php?2,285581,288162#msg-288162

[njs] Fixed use-of-uninitialized-value after 1d0825906438.

2020-05-27 Thread Dmitry Volyntsev
details: https://hg.nginx.org/njs/rev/4fb07fcbb698 branches: changeset: 1404:4fb07fcbb698 user: Dmitry Volyntsev date: Wed May 27 12:02:59 2020 + description: Fixed use-of-uninitialized-value after 1d0825906438. Found by Coverity (CID 1463834). diffstat: src/njs_array.c | 9

[njs] Fixed potential undefined behavior in memcpy().

2020-05-27 Thread Dmitry Volyntsev
details: https://hg.nginx.org/njs/rev/164801c99e9a branches: changeset: 1402:164801c99e9a user: Dmitry Volyntsev date: Tue May 26 19:02:57 2020 + description: Fixed potential undefined behavior in memcpy(). The issue was introduced in 1d0825906438. Found with Clang Static

[njs] Removed dead store assignment after 1d0825906438.

2020-05-27 Thread Dmitry Volyntsev
details: https://hg.nginx.org/njs/rev/1b8a0af35e2b branches: changeset: 1403:1b8a0af35e2b user: Dmitry Volyntsev date: Tue May 26 19:03:11 2020 + description: Removed dead store assignment after 1d0825906438. Found with Clang Static Analyzer. diffstat: src/njs_array.c | 6

[njs] Fixed heap-use-after-free in JSON.parse() function.

2020-05-27 Thread Alexander Borisov
details: https://hg.nginx.org/njs/rev/9beb9ea093b5 branches: changeset: 1405:9beb9ea093b5 user: Alexander Borisov date: Wed May 27 18:18:40 2020 +0300 description: Fixed heap-use-after-free in JSON.parse() function. diffstat: src/njs_json.c | 24