Re: How to disable http v2

2022-06-07 Thread Peter Volkov
On Tue, 7 Jun 2022 at 14:15, Sergey Kandaurov wrote: > > On 7 Jun 2022, at 13:41, Peter Volkov wrote: > > After we enabled HTTP/2 in nginx some old software started to fail. So > we would like to have HTTP v2 enabled in general but disabled for some > specific IP:PORT. I&#

How to disable http v2

2022-06-07 Thread Peter Volkov
Hi. After we enabled HTTP/2 in nginx some old software started to fail. So we would like to have HTTP v2 enabled in general but disabled for some specific IP:PORT. I've tried two listen directives in server block: listen IP:443 ssl http2; listen IP:1443 ssl; The problem is that on both p

Re: nginx error pages and CORS

2021-10-18 Thread Peter Volkov
Hi, any ideas here? -- Peter. On Wed, Oct 13, 2021 at 1:12 PM Peter Volkov wrote: > Hi. > > We use Nginx as a reverse proxy for our service that manages CORS by > itself. Yet we have problems with errors that Nginx generates itself, e.g. > 413 Request Entity Too Large. Such err

nginx error pages and CORS

2021-10-13 Thread Peter Volkov
Hi. We use Nginx as a reverse proxy for our service that manages CORS by itself. Yet we have problems with errors that Nginx generates itself, e.g. 413 Request Entity Too Large. Such error pages has no CORS headers and this causes browsers to report the CORS issue, and thus the user does not see t

Re: why nginx is not compressing reply from proxied server?

2021-05-11 Thread Peter Volkov
2021 at 6:09 PM Peter Volkov wrote: > Hi, I have a HTTP/1.0 web server that streams chunked content to clients. > It does not gzip content so I would like to use nginx as reverse proxy to > compress output from this server. Yet, no matter what I do nginx is not > compressing resul

why nginx is not compressing reply from proxied server?

2021-05-11 Thread Peter Volkov
Hi, I have a HTTP/1.0 web server that streams chunked content to clients. It does not gzip content so I would like to use nginx as reverse proxy to compress output from this server. Yet, no matter what I do nginx is not compressing results. For nginx I'm using following config: server { gzip o

Re: nginx sends 301 redirect for alias in location

2018-09-05 Thread Peter Volkov
On Wed, Sep 5, 2018 at 3:25 PM, Maxim Dounin wrote: > On Wed, Sep 05, 2018 at 09:58:54AM +0300, Peter Volkov wrote: > > > Hi. Could you, please, explain. Why nginx sends 301 redirect for the > > following vhost: > > > > server { > > listen 80; >

nginx sends 301 redirect for alias in location

2018-09-04 Thread Peter Volkov
Hi. Could you, please, explain. Why nginx sends 301 redirect for the following vhost: server { listen 80; server_name test.domain.tv ; access_log off; location = /test/README.txt { alias /var/www/; } } Here is redirect: $ http http://t

Re: try_files is broken with geoip?

2015-03-30 Thread Peter Volkov
On Mon, Mar 30, 2015 at 10:18 PM, Francis Daly wrote: > On Mon, Mar 30, 2015 at 08:26:13PM +0300, Peter Volkov wrote: > > Hi there, > > > We experience problem: if inside location we use geoip variable try_files > > is not working and only root location is looked u

Re: try_files is broken with geoip?

2015-03-30 Thread Peter Volkov
On Mon, Mar 30, 2015 at 8:45 PM, itpp2012 wrote: > Peter Volkov Wrote: > [...] > root /tmp/test/; > "/tmp/test/test/1.ts" -> 404 > > /tmp/test has follofing files: > /tmp/test/dir2/test/1.ts - file > /tmp/test/dir1/test - directory > > looks up /tmp/te

try_files is broken with geoip?

2015-03-30 Thread Peter Volkov
Hi! We experience problem: if inside location we use geoip variable try_files is not working and only root location is looked up for files. So problem is reproducible with the following virtual server configuration (full configuration in attachment): == geo $dontsecure { defa