On Wed, Nov 22, 2017 at 10:41:49AM +0100, Thomas Glanzmann wrote:
Hi there,
> I would like to add an Expires Header only to upstream content that has
> not already set an Expires header. Is there an easy way to do that with
> nginx?
http://nginx.org/r/expires has an example of setting a value ba
On Wed, Nov 22, 2017 at 05:34:13PM +0200, ST wrote:
Hi there,
> I have following redirection rule defined:
>
> location ~ "^/(.*)\.html[^\?]+" {
That says: /anything.html followed by one-or-more things that are not ?.
Note that "location" works on the unencoded url version, and does not
includ
Hi,
I have a centos7 server as a reverse proxy. When I either make a change to an
existing v.hosts file or create a new one and test the set up with "nginx -t",
and it works, I trigger the changes with either "systemctl reload nginx" or
"nginx -s reload". Unfortunately this seems to no longer r
Hello,
I have following redirection rule defined:
location ~ "^/(.*)\.html[^\?]+" {
return 301 /$1.html;
}
so that everything besides "?" after an URL gets truncated:
like
example.com/test.html%D1%80%D0%BE%D1%80%D0%BB -> example.com/test.html
however it doesn't work when "?" is url e
Hello,
I would like to add an Expires Header only to upstream content that has
not already set an Expires header. Is there an easy way to do that with
nginx?
I thought about trying to add a header_filter_by_lua checking the
Expires header and set the necessary value if not already set. Is there
an