Is it possible to configure nginx to redirect all calls from http to https with the exception of some file types, for example .doc, .docx etc.?
This is the actual configuration for redirect all calls:
if ($ssl_protocol = "") {
rewrite ^ https://$server_name$request_uri? permanent;
}
Thank you.
Paolo
This is the actual configuration for redirect all calls:
if ($ssl_protocol = "") {
rewrite ^ https://$server_name$request_uri? permanent;
}
Thank you.
Paolo