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 for the perfomance ? Does not exist any native Nginx directive (or in a third party module) tby andrea.mandolo - Nginx Mailing List - English
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 with all mime types mapped with file estensions, but this approach only works when Ngiby andrea.mandolo - Nginx Mailing List - English
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#rewrite") i was a little in confusion. The first documentation (http:by andrea.mandolo - Nginx Mailing List - English
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 --http-fastcgi-temp-path=/var/lib/nginx/fastcgi \ --http-log-path=/var/log/nginx/access.lby andrea.mandolo - Nginx Mailing List - English
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 auto; pid /var/run/nginx.pid; events { worker_connections 2048;by andrea.mandolo - Nginx Mailing List - English