Is it possible to serve precompressed files without serving their
uncompressed counterparts?
For example:
/var/www/ contains index.html.gz, but no index.html. How do I configure
nginx to respond with index.html.gz when the client supports gzip or let
nginx decompress the file on the fly when the client does not support
gzip?
On Tue, Dec 22, 2015 at 07:15:53PM +0300, Valentin V. Bartenev wrote:
nginx decompress the file on the fly when the client does not support gzip?
error_page 404 = @application;
}
Likely 403 is returned because there is no index file
(Module ngx_http_index_module), and the request is to “/”, not to
“/index.html”. I don’t think there is a good solution.