<div dir="ltr"><div><div><div><div>spdy is a socket directive option. You cannot set it outside of that context AFAICT.<br><br></div>What you can do is play with redirects between two hosts, one with spdy and one without.<br>
<br></div>Since usually certs have at least one DNS name besides the CN you can do it with the same cert. Probably<br></div>I haven't tested and don't know if Nginx complains about a duplicated cert in different hosts.<br>
<br></div>It's not nice or clean. It's an ugly hack.<br></div><div class="gmail_extra"><br clear="all"><div>----appa<br><br></div>
<br><br><div class="gmail_quote">On Mon, Jul 8, 2013 at 3:06 PM, Richard Kearsley <span dir="ltr"><<a href="mailto:rkearsley@blueyonder.co.uk" target="_blank">rkearsley@blueyonder.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi<br>
I'm trying to set up spdy so that I can choose weather or not to use it based on the server location that's accessed<br>
As I understand, the underlying protocol (http/https/spdy) is established first before any request can be sent (e.g. before we know which location it will match)<br>
<br>
I know this example is totally impossible, but would like to know if there is a real way of doing it:<br>
<br>
server<br>
{<br>
listen 80;<br>
listen 443 ssl spdy;<br>
<br>
location /<br>
{<br>
spdy off;<br>
blah;<br>
}<br>
<br>
location /spdy<br>
{<br>
spdy on;<br>
blah;<br>
}<br>
}<br>
<br>
Many thanks<br>
<br>
______________________________<u></u>_________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/<u></u>mailman/listinfo/nginx</a><br>
</blockquote></div><br></div>