<div>
Hey everybody !
</div><div><br></div><div>Here are some news.</div><div>I've compiled nginx with <a href="http://wiki.nginx.org/NginxHttpHeadersMoreModule">HttpHeadersMoreModule</a>, to add custom headers in order to see if the location is or isn't matched.</div><div><br></div><div>Here is what I tried:</div><div>URL: http://www.mega-sound.be/adata/428.mp3</div><div>Custom config file:</div><div><div></div><blockquote type="cite"><div>root@shadow [/etc/cpnginx/custom]# cat 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></blockquote><div></div></div>
<div><div>The headers sent:</div><div><div></div><blockquote type="cite"><div>GET <b>/adata/428.mp3</b> HTTP/1.1</div><div>Host: www.mega-sound.be</div><div>User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:11.0) Gecko/20100101 Firefox/11.0</div><div>Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8</div><div>Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3</div><div>Accept-Encoding: gzip, deflate</div><div>Connection: keep-alive</div><div>Referer: http://www.mega-sound.be/</div><div>Cookie: cookie-data</div><div>If-Modified-Since: Mon, 26 Mar 2012 18:50:14 GMT</div><div>Cache-Control: max-age=0</div></blockquote><div><br></div><div>And received </div><div></div></div><div><div></div><blockquote type="cite"><div>HTTP/1.1 200 OK</div><div>Server: nginx</div><div>Date: Fri, 30 Mar 2012 07:03:58 GMT</div><div><b>Content-Type: audio/mpeg</b></div><div>Content-Length: 8976405</div><div>Last-Modified: Mon, 26 Mar 2012 18:50:14 GMT</div><div>Connection: keep-alive</div><div><b>X-MyMasterHeader: set</b></div><div>Expires: Sat, 31 Mar 2012 07:03:58 GMT</div><div>Cache-Control: max-age=86400</div><div>Accept-Ranges: bytes</div></blockquote><div> </div><div>Do you have an idea :/ ?</div><div>Thank you for your help.</div><div></div></div><div>---<br>Cheers, 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 à 07:08, Adnan RIHAN a écrit :</p>
<blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
<span><div><div>
<div>
Hi,
</div><div><br></div><div>Finally I need your help :/</div><div><br></div><div>The "CPNginx" devs have a website with a ticket support system, but they're telling me that they don't support custom configuration...</div><div>I've told them I need their help because they know how they built their module and how they made it work, they still just answer "You need to do it by yourself"...</div>
<div><div><br></div><div>What can I do T_T ?</div><div>---<br>Regards, 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 jeudi 29 mars 2012 à 02:36, Adnan RIHAN a écrit :</p><blockquote type="cite"><div>
<span><div><div>
<div>
Mmmh...
</div><div><br></div><div>Ok. I see, maybe there will never be any match, as there is only "proxy_redirect" in vhosts;</div><div><blockquote type="cite"><div><div>########### Vhost configuration of <a href="http://mega-sound.be">mega-sound.be</a></div><div>server_name <a href="http://mega-sound.be">mega-sound.be</a> <a href="http://www.mega-sound.be">www.mega-sound.be</a>;</div><div><span style="white-space:pre"> </span>access_log /usr/local/apache/domlogs/<a href="http://mega-sound.be">mega-sound.be</a>;</div><div> proxy_redirect <a href="http://www.mega-sound.be:8888">http://www.mega-sound.be:8888</a> <a href="http://www.mega-sound.be">http://www.mega-sound.be</a>;</div><div> proxy_redirect <a href="http://mega-sound.be:8888">http://mega-sound.be:8888</a> <a href="http://mega-sound.be">http://mega-sound.be</a>;</div><div> proxy_redirect <a href="http://mega-sound.be:8888">http://mega-sound.be:8888</a> <a href="http://mega-sound.be">http://mega-sound.be</a>;</div><div>include "/etc/cpnginx/custom/<a href="http://mega-sound.be">mega-sound.be</a>";</div></div></blockquote></div>
<div><div>Apache is still listening on :8888</div><div>Is there a chance with this conf, to match any "location" as there is no "document_root" or equivalent ?</div><div>I mean, location is system based or URL based?</div><div><br></div><div>If it's system, I don't know. If it's URL based, there should be a match since the first test.</div><div>Isn't it ?</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 jeudi 29 mars 2012 à 02:15, Cliff Wells a écrit :</p><blockquote type="cite"><div>
<span><div><div><div>On Wed, 2012-03-28 at 19:15 -0400, locojohn wrote:</div><blockquote type="cite"><div><div>Adnan, if it doesn't set the "Content-Disposition" header as per my</div><div>example, then it doesn't match the location in which this header is set.</div><div> It is likely that some other location has preference and so the code I</div><div>provided will never be triggered. </div></div></blockquote><div><br></div><div>I'm fairly certain this is exactly what is happening. Either solution</div><div>should work fine, but only if the location is properly matched.</div><div><br></div><div>Again, it's not the preferred solution, but directly editing mime.types</div><div>would probably work.</div><div><br></div><div>Cliff</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>
</div></blockquote><div>
<br>
</div>
</div></div></span>
</div></blockquote><div>
<br>
</div>
</div></div></span>
</blockquote>
<div>
<br>
</div>