<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Dec 18, 2013 at 2:48 PM, Dale K. Henrichs <span dir="ltr">&lt;<a href="mailto:dale.henrichs@gemtalksystems.com" target="_blank" class="vt-p">dale.henrichs@gemtalksystems.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:10pt;font-family:arial,helvetica,sans-serif"><br><hr><blockquote style="padding-left:5px;font-size:12pt;font-style:normal;margin-left:5px;font-family:Helvetica,Arial,sans-serif;text-decoration:none;font-weight:normal;border-left:2px solid rgb(16,16,255)">
<b>From: </b>&quot;Mariano Martinez Peck&quot; &lt;<a href="mailto:marianopeck@gmail.com" target="_blank" class="vt-p">marianopeck@gmail.com</a>&gt;<br><b>To: </b><a href="mailto:glass@lists.gemtalksystems.com" target="_blank" class="vt-p">glass@lists.gemtalksystems.com</a>, &quot;Seaside - general discussion&quot; &lt;<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank" class="vt-p">seaside@lists.squeakfoundation.org</a>&gt;<br>
<b>Sent: </b>Wednesday, December 18, 2013 9:40:06 AM<br><b>Subject: </b>[Glass] [a bit offtopic] Redirect special seaside request to a        different VM<div class="im"><br><br><div dir="ltr">Hi guys, <div><br></div><div>
I have some special requests that I want to redirect to another Gem. What I did in seaside is to implement #updateUrl: and add some parameter for those cases I want to send it to another Gem. </div>
<div><br></div><div>Now, I don&#39;t know how to adapt nginx for such a thing. I am using FastCGI. So I need to check if such argument is present in the URL and if true, send it to another upstream. If not, use the normal upstream. </div>
</div></div></blockquote>Are you having trouble finding the parameter because you are using FastCGI? Or is the trouble purely an nginx question?<br></div></div></blockquote><div><br></div><div>I guess the later.  My usecase is this: I have some module inside the app which have some reports which may take several seconds, even some minutes. I know I could make them async, I know I have serviceVM, etc. But for the moment I want to keep it simple. So all those request from those modules, I want a special gem listening to them. Why? because I don&#39;t want to lock the VM for many time and because I want a different gem conf file (assignee more memory, etc). </div>
<div><br></div><div>So the thing is how can I make the if in nginx and send the request to the appropriate upstream of gems.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="font-size:10pt;font-family:arial,helvetica,sans-serif"><blockquote style="padding-left:5px;font-size:12pt;font-style:normal;margin-left:5px;font-family:Helvetica,Arial,sans-serif;text-decoration:none;font-weight:normal;border-left:2px solid rgb(16,16,255)">
<div class="im"><div dir="ltr"><div></div>
<div><br></div><div>I have explained my problem here: <a href="http://serverfault.com/questions/561993/nginx-choose-upstream-depending-on-args" target="_blank" class="vt-p">http://serverfault.com/questions/561993/nginx-choose-upstream-depending-on-args</a></div>

<div>but I didn&#39;t have any working answer.</div><div><br></div><div>Does any of you have an idea how could I do that? <br clear="all"><div><br></div><div>Thanks in advance, </div><div><br></div>-- <br>Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank" class="vt-p">http://marianopeck.wordpress.com</a><br>


</div></div>
<br></div>_______________________________________________<br>Glass mailing list<br><a href="mailto:Glass@lists.gemtalksystems.com" target="_blank" class="vt-p">Glass@lists.gemtalksystems.com</a><br><a href="http://lists.gemtalksystems.com/mailman/listinfo/glass" target="_blank" class="vt-p">http://lists.gemtalksystems.com/mailman/listinfo/glass</a><br>
</blockquote><br></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank" class="vt-p">http://marianopeck.wordpress.com</a><br>
</div></div>