<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style='font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;'>Assuming you are using apache and vhosts, my first thought is vhosts problem in&nbsp; /etc/httpd/extra/http-vhosts.conf.<br><br><br><div id="1"><br>---- On Mon, 06 Jan 2014 08:13:34 -0800 <b>Dale K. Henrichs &lt;dale.henrichs@gemtalksystems.com&gt;</b> wrote ---- <br></div><br><blockquote style="border-left: 1px solid #0000FF; padding-left: 6px; margin:0 0 0 5px"><div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000">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><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;<a href="mailto:marianopeck@gmail.com" target="_blank">marianopeck@gmail.com</a>&gt;<br><b>To: </b>"Seaside - general discussion" &lt;<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a>&gt;<br><b>Cc: </b><a href="mailto:glass@lists.gemtalksystems.com" target="_blank">glass@lists.gemtalksystems.com</a><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 style="white-space: pre;">        </span>app</div><div>&nbsp;<span style="white-space: pre;">        </span> &nbsp;<span style="white-space: pre;">        </span>preferenceAt: #serverProtocol put: 'https';</div> <div>&nbsp; &nbsp; <span style="white-space: pre;">                </span>preferenceAt: #serverHostname put: 'localhost';</div><div>&nbsp; &nbsp; <span style="white-space: pre;">                </span>preferenceAt: #serverPort put: 443;</div><div> &nbsp; &nbsp;&nbsp;<span 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 style="white-space: pre;">                </span>location /test {</div> <div><span style="white-space: pre;">                </span> &nbsp; &nbsp; &nbsp; &nbsp;try_files $uri @seasideTest;</div><div><span style="white-space: pre;">                </span>}</div></div><div><br></div><div><br></div><div><div>&nbsp; &nbsp; &nbsp; &nbsp; location @seasideTest {</div> <div><span 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><a href="mailto:Glass@lists.gemtalksystems.com" target="_blank">Glass@lists.gemtalksystems.com</a><br><a href="http://lists.gemtalksystems.com/mailman/listinfo/glass" target="_blank">http://lists.gemtalksystems.com/mailman/listinfo/glass</a><br></blockquote><br></div>_______________________________________________ <br>seaside mailing list <br><a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a> <br><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a> <br></div></blockquote><br></div></body></html>