Thanks for the reply!!
This approach can be a good solution.
I wonder if this can affect the server perfomance.
Another solution could be to create a location for each file extension that
only adds the correct Content-Type header.
This is certainly less maintainable than a map, but is it better f
Hi !!
i have a Nginx server that operates as a reverse proxy to a my bucket in
Amazon S3.
Amazon S3 service could deliver contents with wrong Content-Type header,
so i would like to override this header by referring to file extension.
In other servers i have just configured the "types" block wit
Thank you very much for the immediate answer !! :)
Just reading this documentation
("http://nginx.org/en/docs/http/ngx_http_rewrite_module.html#rewrite";)
i had the suspect that "set" is a rewrite module`s directive.
But, in this other documentation
("http://wiki.nginx.org/HttpRewriteModule#rewri
Sorry, i forgot to post Nginx version and build details.
NGINX_VERSION="1.2.6"
# CONFIGURE command used to build ###
./configure --conf-path=/etc/nginx/nginx.conf --prefix=/etc/nginx
--error-log-path=/var/log/nginx/error.log \
--http-client-body-temp-path=/var/lib/nginx/body
--htt
Hi,
I'd like to report a strange behaviour of REWRITE "break" directives inside
a "location" block, when it is used a SET directive subsequently.
Now, i quote a little example, with a basic Nginx configuration that
simulate the issue.
# /etc/nginx/nginx.conf ##
worker_processes aut