<div dir="ltr"><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">Are you sure this configuration gets loaded (nginx -t OK, no error on configuration -re-loading)?<br><br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">You could try to replace your types block with an empty one (to override defaults if they are defined at upper level, or simply remove them) and add the following directive:<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">default_type application/x-ms-application<br><br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">You should se the Content-Encoding set to this special value by requesting with HTTP on port 8080 and HTTPS on port 443.<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">If you get anything different, your request is probably served elsewhere.<br></div><div class="gmail_extra"><div><div class="gmail_signature"><font size="1"><span style="color:rgb(102,102,102)">---<br></span><b><span style="color:rgb(102,102,102)">B. R.</span></b><span style="color:rgb(102,102,102)"></span></font></div></div>
<br><div class="gmail_quote">On Tue, Mar 8, 2016 at 9:34 PM, j.o.l <span dir="ltr"><<a href="mailto:nginx-forum@forum.nginx.org" target="_blank">nginx-forum@forum.nginx.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks a lot for providing a working example. I reproduced it and yes works<br>
with that server block. Then I tried to change until I discovered the<br>
following. Here is my server block:<br>
<br>
server {<br>
listen 443 ssl;<br>
listen 8080;<br>
server_name xxx;<br>
ssl_certificate /etc/letsencrypt/live/xxx/fullchain.pem;<br>
ssl_certificate_key /etc/letsencrypt/live/xxx/privkey.pem;<br>
root /usr/local/nginx/conf/websites/xxx;<br>
autoindex on;<br>
types {<br>
application/x-ms-application application;<br>
}<br>
}<br>
<br>
When I access that server using http, Content-Type is returned as defined,<br>
when accessing it via https, Content-Type is missing. Strange, isn´t it?<br>
Btw. I am using nginx 1.8.0.<br>
<br>
Posted at Nginx Forum: <a href="https://forum.nginx.org/read.php?2,265148,265162#msg-265162" rel="noreferrer" target="_blank">https://forum.nginx.org/read.php?2,265148,265162#msg-265162</a><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a></blockquote></div><br></div></div>