@bach who is the owner & what permissions are on this file?: <span style="font-family:arial,sans-serif;font-size:13px"> /opt/local/etc/nginx/mime.</span><span style="font-family:arial,sans-serif;font-size:13px">types;</span><br style="font-family:arial,sans-serif;font-size:13px">
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">please run: ls -alh </span><span style="font-family:arial,sans-serif;font-size:13px">/opt/local/etc/nginx/mime.</span><span style="font-family:arial,sans-serif;font-size:13px">types </span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><font face="arial, sans-serif">Also can you post your mime.types on pastebin or gist?</font></div><div class="gmail_extra"><br clear="all">
<span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><div><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px">Reg</span>ards,</div>
<div><br></div><a href="http://www.twitter.com/jdorfman" target="_blank">Justin Dorfman</a><br><br><a href="http://www.netdna.com" target="_blank">NetDNA</a>™<br>The Science of Acceleration™<br><br>Email / gtalk: <a href="mailto:jdorfman@netdna.com" target="_blank">jdorfman@netdna.com</a><br>
</span><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px">M: 818.485.1458<br></span><div><div><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><span style="background-color:rgb(255,255,255)">Skype: netdna-justind<br>
Twitter: </span></span><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><span style="background-color:rgb(255,255,255)"><a href="http://www.twitter.com/jdorfman" style="color:rgb(0,0,204)" target="_blank">@jdorfman</a></span><br>
<br></span></div><div><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><a href="http://www.netdna.com/" target="_blank">www.NetDNA.com</a> | </span><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><a href="http://www.maxcdn.com/" target="_blank">www.MaxCDN.com</a></span><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"> </span></div>
<div><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><a href="http://twitter.com/NetDNA" style="color:rgb(42,93,176)" target="_blank">@NetDNA</a> | </span><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><a href="http://twitter.com/MaxCDN" style="color:rgb(42,93,176)" target="_blank">@MaxCDN</a></span></div>
</div><br>
<br><br><div class="gmail_quote">On Mon, Nov 19, 2012 at 7:48 PM, bach <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us" target="_blank">nginx-forum@nginx.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks Justin,<br>
<br>
here's how my config looks like. Please note the 2 Pyramid apps at the<br>
bottom, from which I am trying to server the json file.<br>
Anything obviously wrong with that setup that could be affecting the<br>
header?<br>
<br>
thanks<br>
<br>
========================<br>
user   www  www;<br>
worker_processes  1;<br>
<br>
#error_log  /var/log/nginx/error.log;<br>
#error_log  /var/log/nginx/error.log  notice;<br>
#error_log  /var/log/nginx/error.log  info;<br>
<br>
#pid        /var/db/nginx/nginx.pid;<br>
<br>
<br>
events {<br>
    # After increasing this value You probably should increase limit<br>
    # of file descriptors (for example in start_precmd in startup script)<br>
    worker_connections  1024;<br>
}<br>
<br>
<br>
http {<br>
    include       /opt/local/etc/nginx/mime.types;<br>
    default_type  application/octet-stream;<br>
<br>
    #log_format  main  '$remote_addr - $remote_user [$time_local] "$request"<br>
'<br>
    #                  '$status $body_bytes_sent "$http_referer" '<br>
    #                  '"$http_user_agent" "$http_x_forwarded_for"';<br>
<br>
    #access_log  /var/log/nginx/access.log  main;<br>
<br>
    sendfile        on;<br>
    #tcp_nopush     on;<br>
<br>
    #keepalive_timeout  0;<br>
    keepalive_timeout  65;<br>
<br>
    #gzip  on;<br>
<br>
    server {<br>
        listen       80;<br>
        server_name  localhost;<br>
<br>
        #charset koi8-r;<br>
<br>
        #access_log  /var/log/nginx/host.access.log  main;<br>
<br>
        location / {<br>
            root   share/examples/nginx/html;<br>
            index  index.html index.htm;<br>
        }<br>
<br>
        #error_page  404              /404.html;<br>
<br>
        # redirect server error pages to the static page /50x.html<br>
        #<br>
        error_page   500 502 503 504  /50x.html;<br>
        location = /50x.html {<br>
            root   share/examples/nginx/html;<br>
        }<br>
    }<br>
<br>
#first pyramid App - App1<br>
        server {<br>
            listen 80;<br>
            server_name  <a href="http://app1.com" target="_blank">app1.com</a> <a href="http://www.app1.com" target="_blank">www.app1.com</a>;<br>
<br>
            access_log  /home/<a href="http://app1.com/web/env/access.log" target="_blank">app1.com/web/env/access.log</a>;<br>
<br>
            location / {<br>
                proxy_set_header        Host $host;<br>
                proxy_set_header        X-Real-IP $remote_addr;<br>
                proxy_set_header        X-Forwarded-For<br>
$proxy_add_x_forwarded_for;<br>
                proxy_set_header        X-Forwarded-Proto $scheme;<br>
<br>
                client_max_body_size    10m;<br>
                client_body_buffer_size 128k;<br>
                proxy_connect_timeout   60s;<br>
                proxy_send_timeout      90s;<br>
                proxy_read_timeout      90s;<br>
                proxy_buffering         off;<br>
                proxy_temp_file_write_size 64k;<br>
                proxy_pass <a href="http://127.0.0.1:5000" target="_blank">http://127.0.0.1:5000</a>;<br>
                proxy_redirect          off;<br>
            }<br>
        }<br>
<br>
# my second pyramid App - App2<br>
        server {<br>
              listen 80;<br>
              server_name  <a href="http://app2.com" target="_blank">app2.com</a> <a href="http://www.app2.com" target="_blank">www.app2.com</a>;<br>
<br>
              access_log  /home/<a href="http://app2.com/logs/access.log" target="_blank">app2.com/logs/access.log</a>;<br>
<br>
              location / {<br>
                  proxy_set_header        Host $host;<br>
                  proxy_set_header        X-Real-IP $remote_addr;<br>
                  proxy_set_header        X-Forwarded-For<br>
$proxy_add_x_forwarded_for;<br>
                  proxy_set_header        X-Forwarded-Proto $scheme;<br>
<br>
                  client_max_body_size    10m;<br>
                  client_body_buffer_size 128k;<br>
                  proxy_connect_timeout   60s;<br>
                  proxy_send_timeout      90s;<br>
                  proxy_read_timeout      90s;<br>
                  proxy_buffering         off;<br>
                  proxy_temp_file_write_size 64k;<br>
                  proxy_pass <a href="http://127.0.0.1:5003" target="_blank">http://127.0.0.1:5003</a>;<br>
                  proxy_redirect          off;<br>
              }<br>
          }<br>
}<br>
</pre><br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,227766,232994#msg-232994" target="_blank">http://forum.nginx.org/read.php?2,227766,232994#msg-232994</a><br>
<div class="HOEnZb"><div class="h5"><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" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br></div>