<div>
Ok.
</div><div><br></div><div>Then, here is the vhost:</div><div><div></div><blockquote type="cite"><div>#################################################################</div><div>########### Vhost configuration of mega-sound.be</div><div>#################################################################</div><div>server {</div><div>access_log off;</div><div>error_log logs/vhost-error_log warn;</div><div>listen 80;</div><div>server_name mega-sound.be www.mega-sound.be;</div><div>location ~* ^.+.(jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|iso|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|mp3|ogv|ogg|flv|swf|mpeg|mpg|mpeg4|mp4|avi|wmv|js|css)$ {</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>expires 24h;</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>root /home/megasoun/public_html;</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>error_page 404 = @apache;</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>access_log /usr/local/apache/domlogs/mega-sound.be;</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>log_not_found off;<span class="Apple-tab-span" style="white-space:pre"> </span></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>}<span class="Apple-tab-span" style="white-space:pre"> </span></div><div>location ~ /\.ht {</div><div> deny all;</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>}</div><div><br></div><div>location / {</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>log_not_found off;</div><div><br></div><div> client_max_body_size 2000m;</div><div> client_body_buffer_size 512k;</div><div> proxy_send_timeout 90;</div><div> proxy_read_timeout 90;</div><div> proxy_buffer_size 32k;</div><div> proxy_buffers 16 32k;</div><div> proxy_busy_buffers_size 64k;</div><div> proxy_temp_file_write_size 64k;</div><div> proxy_connect_timeout 30s;</div><div><br></div><div> proxy_redirect http://www.mega-sound.be:8888 http://www.mega-sound.be;</div><div> proxy_redirect http://mega-sound.be:8888 http://mega-sound.be;</div><div> proxy_pass http://87.98.132.48:8888/;</div><div> proxy_set_header Host $host;</div><div> proxy_set_header X-Real-IP $remote_addr;</div><div> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;</div><div> }</div><div>location @apache {</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>internal;</div><div><br></div><div> client_max_body_size 2000m;</div><div> client_body_buffer_size 512k;</div><div> proxy_send_timeout 90;</div><div> proxy_read_timeout 90;</div><div> proxy_buffer_size 32k;</div><div> proxy_buffers 16 32k;</div><div> proxy_busy_buffers_size 64k;</div><div> proxy_temp_file_write_size 64k;</div><div> proxy_connect_timeout 30s;</div><div><br></div><div> proxy_redirect http://mega-sound.be:8888 http://mega-sound.be;</div><div> proxy_pass http://87.98.132.48:8888;</div><div> proxy_set_header Host $host;</div><div> proxy_set_header X-Real-IP $remote_addr;</div><div> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;</div><div> }</div><div>include "/etc/cpnginx/custom/mega-sound.be";</div><div>}</div></blockquote><div></div></div>
<div><div><br></div><div>Here is the included file:</div><div><div></div><blockquote type="cite"><div>root@shadow [/usr/local/nginx/conf]# cat /etc/cpnginx/custom/mega-sound.be</div><div>location ~* \.mp3$ {</div><div> more_set_headers 'X-MyHeader: .mp3';</div><div>}</div><div><br></div><div>location /adata {</div><div> more_set_headers 'X-MyHeader: adata';</div><div>}</div><div><br></div><div>more_set_headers 'X-MyMasterHeader: set';</div><div>more_set_headers 'X-My2Header: $request_uri';</div></blockquote><div></div></div><div><br></div><div>Here is the HTTP Headers for the root URL (www.mega-sound.be):</div><div><div></div><blockquote type="cite"><div>HTTP/1.1 200 OK</div><div>Server: nginx</div><div>Date: Fri, 30 Mar 2012 15:41:35 GMT</div><div>Content-Type: text/html</div><div>Transfer-Encoding: chunked</div><div>Connection: keep-alive</div><div>X-Powered-By: PHP/5.3.10</div><div>Expires: Thu, 19 Nov 1981 08:52:00 GMT</div><div>Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0</div><div>Pragma: no-cache</div><div>Set-Cookie: slrememberme=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT</div><div>X-MyMasterHeader: set</div><div>X-My2Header: /</div><div>Content-Encoding: gzip</div></blockquote><div></div></div><div><br></div><div>Here is the headers for an MP3 (http://www.mega-sound.be/adata/362.mp3):</div><div><div></div><blockquote type="cite"><div>HTTP/1.1 200 OK</div><div>Server: nginx</div><div>Date: Fri, 30 Mar 2012 15:43:04 GMT</div><div>Content-Type: audio/mpeg</div><div>Content-Length: 3258859</div><div>Last-Modified: Wed, 22 Feb 2012 13:52:13 GMT</div><div>Connection: keep-alive</div><div>X-MyMasterHeader: set</div><div>X-My2Heade: /adata/362.mp3</div><div>Expires: Sat, 31 Mar 2012 15:43:04 GMT</div><div>Cache-Control: max-age=86400</div><div>Accept-Ranges: bytes</div></blockquote><div></div></div><div><br></div><div>Is it enough ?</div><div>Thank you for your help.</div><div>---<br>Cordialement, Adnan RIHAN.<br>
<u>Président</u>-<u>Fondateur</u> de l'association (de loi 1901) <a href="http://www.virtual-info.info/" target="_blank"><b>Virtual-Info</b></a>, <i>hébergeur Web et Serveurs de Jeux</i>.<br>
<a href="http://rihan.fr/" target="_blank"><u>Consultant</u></a>-<u>Technicien Supérieur</u> en <i>Informatique de Gestion</i>.<br><u>Ambassadeur</u> <a href="http://lyt.me/7E" target="_blank"><b>Qt</b></a> (Projet <a href="http://rihan.fr/fr/projets/tagpg" target="_blank"><b>Tag-PG</b></a>).<u><br></u></div><div><br></div></div>
<p style="color: #A0A0A8;">Le vendredi 30 mars 2012 à 10:36, Francis Daly a écrit :</p>
<blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
<span><div><div><div>On Fri, Mar 30, 2012 at 07:08:37AM +0200, Adnan RIHAN wrote:</div><div><br></div><div>Hi there,</div><div><br></div><blockquote type="cite"><div>What can I do T_T ?</div></blockquote><div><br></div><div>Read <a href="http://nginx.org/en/docs/http/request_processing.html">http://nginx.org/en/docs/http/request_processing.html</a></div><div><br></div><div>Look in your config file. Be aware of "include" directives. Look in</div><div>every server{} block. Look at "listen" and "server_name" directives in</div><div>each server{} block.</div><div><br></div><div>Identify which one server{} block is being used to handle this request.</div><div><br></div><div>Post the config for that server{}.</div><div><br></div><div>(If you can additionally identify which one location{} block within</div><div>that server{} block is being used for this request, then you could</div><div>limit what you post to: the server{} block outside of all location{}s,</div><div>plus the content of that one location{}. But that's probably more work</div><div>than is necessary.)</div><div><br></div><div><br></div><div>If you can enable the debug log (will probably require rebuilding</div><div>nginx), then you will see lots of information about what nginx thinks</div><div>is happening.</div><div><br></div><div>But posting the relevant part of the config file is the best way to make</div><div>it easy for people help you.</div><div><br></div><div> f</div><div>-- </div><div>Francis Daly <a href="mailto:francis@daoine.org">francis@daoine.org</a></div><div><br></div><div>_______________________________________________</div><div>nginx mailing list</div><div><a href="mailto:nginx@nginx.org">nginx@nginx.org</a></div><div><a href="http://mailman.nginx.org/mailman/listinfo/nginx">http://mailman.nginx.org/mailman/listinfo/nginx</a></div></div></div></span>
</blockquote>
<div>
<br>
</div>