Re: Patch: slash_redirect_temporary directive

2019-08-31 Thread Constantine A. Murenin
If you don't like 301 redirects because permanent caching — can't blame you there, as I'm in same boat — an easier way would be to simply use what I call the exception handling mechanism of nginx to change all 301 replies to 302, and you don't need any patches to perform such a change, as a simple

Re: Announcing ngx_pagespeed beta 1.5.27.1

2013-04-25 Thread Constantine A. Murenin
But the web-site appears to be down; tested from two distinct locations. Cns# http_ping -count 4 -interval 1 http://ngxpagespeed.com/; date http://ngxpagespeed.com/: timed out http://ngxpagespeed.com/: timed out http://ngxpagespeed.com/: timed out http://ngxpagespeed.com/: timed out --- http://n

adding header/footer to gzip'ed html files

2013-04-27 Thread Constantine A. Murenin
Hello, I'm trying to see ways in which OpenGrok could be optimised with nginx. One of the ideas I have is using nginx to serve the /xref/ pages, instead of them going through OpenGrok each time. OpenGrok (the indexer) pre-generates the body of the /xref/ pages, and stores the resulting html

is static access_log within if-in-location better than dynamic global?

2013-05-11 Thread Constantine A. Murenin
Hi, According to http://nginx.org/r/access_log, the access_log directive cannot be used within an `if` in `server`, only within an `if` in `location`. Indeed, it doesn't actually work within an `if` directly within `server`, but variables can be used to seemingly achieve identical result.

Re: access log time format

2013-05-15 Thread Constantine A. Murenin
Yes, it is possible. See http://nginx.org/r/log_format, or, more specifically, $time_iso8601 C. On 15 May 2013 10:04, Casey Scott wrote: > Is it possible to format the time Nginx uses in access.log to match this? > > "%Y-%m-%d %H:%M:%S" or 2013-05-14 15:40:21 > > My goal is to have Nginx access

Re: access log time format

2013-05-15 Thread Constantine A. Murenin
On 15 May 2013 10:13, Casey Scott wrote: > From what I can tell, iso_8601 is a specific format. Do you mean that I can > manipulate it? > > Thanks, > Casey Yes, it's a specific format. You seem to like ISO8601, without knowing about it being named so. :p C. > - Original Message - >> Y

Re: rewrite URL

2015-07-04 Thread Constantine A. Murenin
On 2015-07-04 11:38, Philipp Kraus wrote: Hello, I try to use Nginx as a proxy (for SSL) on a Jetty server. The Jetty application should be accessed by a subdirectory of my Nginx. I have setup this location configuration: location /myapp { proxy_pass http://localhost:8112;

Re: Forcing incognito mode on a reverse proxy

2023-12-20 Thread Constantine A. Murenin
On 16/12/2023, Saint Michael wrote: > I have a reverse proxy but for security reasons, I need to force the > client to work the closest to an Incognito session as possible. > I tried adding the following: > > proxy_set_header Cookie ""; > add_header Set-Cookie "cookie_name=; Expires=Thu, 01 Jan 19

A dynamic web-site written wholly in nginx.conf? Introducing mdoc.su!

2013-02-18 Thread Constantine A. Murenin
c URL shortener for BSD manual pages, written in nginx.conf # Copyright (c) 2013 Constantine A. Murenin # http://mdoc.su/ # https://github.com/cnst/mdoc.su server { listen *:80; listen [::]:80; server_name mdoc.su www.mdoc.su *.mdoc.su;

A dynamic web-site written wholly in nginx.conf? Introducing mdoc.su!

2013-02-18 Thread Constantine A. Murenin
pasting the message from SeaMonkey. :) But mail.content_disposition_type set to 0 should now work much better. Best regards, Constantine. # cnst: mdoc.su.nginx.conf, 2013-02-14/17 # Deterministic URL shortener for BSD manual pages, written in nginx.conf # Copyright (c) 2013 Constantine A.