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

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 try_file

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 O

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 check

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 __