<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000'>haha ... you already did:)<br><br>Dale<br><br><hr id="zwchr"><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px; color: rgb(0, 0, 0); font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>From: </b>"Dale K. Henrichs" &lt;dale.henrichs@gemtalksystems.com&gt;<br><b>To: </b>"Mariano Martinez Peck" &lt;marianopeck@gmail.com&gt;<br><b>Cc: </b>glass@lists.gemtalksystems.com, "Seaside - general discussion" &lt;seaside@lists.squeakfoundation.org&gt;<br><b>Sent: </b>Monday, January 6, 2014 8:13:34 AM<br><b>Subject: </b>Re: [Glass] Deploying problem with serverPath and nginx<br><br><style>p { margin: 0; }</style><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">Mariano,<br><br>If you haven't already, you might ask this question on the seaside list as well ... (I know that I don't know the answer:)<br><br>Dale<br><br><hr id="zwchr"><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px; color: rgb(0, 0, 0); font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>From: </b>"Mariano Martinez Peck" &lt;marianopeck@gmail.com&gt;<br><b>To: </b>"Seaside - general discussion" &lt;seaside@lists.squeakfoundation.org&gt;<br><b>Cc: </b>glass@lists.gemtalksystems.com<br><b>Sent: </b>Monday, January 6, 2014 5:59:13 AM<br><b>Subject: </b>[Glass] Deploying problem with serverPath and nginx<br><br><div dir="ltr">Hi guys,&nbsp;<div><br></div><div>I am having a problem trying to deploy an app with nginx. Say my seaside app is registered with a name 'myApp' and I am deploying it at: <a href="https://localhost/myApp" target="_blank">https://localhost/myApp</a> and I want to have it under '<a href="https://localhost/test" target="_blank">https://localhost/test</a>'. I am using nginx and FastCGI (Gemstone).</div>
<div><br></div><div>Notice that I don't want to register the app with a different name ('test' in this example). I want the app to continue being deployed with 'myApp' name. I just change to change the URL suffix.&nbsp;</div>
<div><br></div><div>In seaside side I did:</div><div><br></div><div><span class="" style="white-space: pre;">        </span>app</div><div>&nbsp;<span class="" style="white-space: pre;">        </span> &nbsp;<span class="" style="white-space: pre;">        </span>preferenceAt: #serverProtocol put: 'https';</div>
<div>&nbsp; &nbsp; <span class="" style="white-space: pre;">                </span>preferenceAt: #serverHostname put: 'localhost';</div><div>&nbsp; &nbsp; <span class="" style="white-space: pre;">                </span>preferenceAt: #serverPort put: 443;</div><div>
&nbsp; &nbsp;&nbsp;<span class="" style="white-space: pre;">                </span>preferenceAt: #serverPath put: '/test'.&nbsp;<br clear="all"><div><br></div><div>And in nginx I have:</div><div><br></div><div><div><br></div><div><span class="" style="white-space: pre;">                </span>location /test {</div>
<div><span class="" style="white-space: pre;">                </span> &nbsp; &nbsp; &nbsp; &nbsp;try_files $uri @seasideTest;</div><div><span class="" style="white-space: pre;">                </span>}</div></div><div><br></div><div><br></div><div><div>&nbsp; &nbsp; &nbsp; &nbsp; location @seasideTest {</div>
<div><span class="" style="white-space: pre;">                        </span></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; include fastcgi_params;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fastcgi_pass seaside;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; }&nbsp;</div></div><div><br></div><div><br></div><div>
<div>&nbsp; &nbsp; &nbsp; upstream seaside&nbsp;</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; server localhost:9001;</div><div>&nbsp; &nbsp; &nbsp; }</div></div><div><br></div><div><br></div><div>However, if I browse &nbsp;'<a href="https://localhost/test" target="_blank">https://localhost/test</a>' I get a "<span style="color: rgb(0, 0, 0); white-space: pre-wrap;">/test not found". And in nginx logs I get "</span><font color="#000000"><span style="white-space: pre-wrap;">2014/01/06 10:51:06 [info] 43449#0: *31 client prematurely closed connection while reading client request line, client: 127.0.0.1, server: localhost</span></font><span style="color: rgb(0, 0, 0); white-space: pre-wrap;">"     </span></div>
<div><br></div><div>Any idea what I am doing wrong? Maybe I still need a rewrite of the url from '/test' to '/myApp' ? ...</div><div><br></div><div>Thanks in advance,&nbsp;</div><div><br></div><div><br></div>-- <br>
Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br>
</div></div>
<br>_______________________________________________<br>Glass mailing list<br>Glass@lists.gemtalksystems.com<br>http://lists.gemtalksystems.com/mailman/listinfo/glass<br></blockquote><br></div></blockquote><br></div></body></html>