<div dir="ltr">Hi guys, <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 &#39;myApp&#39; and I am deploying it at: <a href="https://localhost/myApp">https://localhost/myApp</a> and I want to have it under &#39;<a href="https://localhost/test">https://localhost/test</a>&#39;. I am using nginx and FastCGI (Gemstone).</div>
<div><br></div><div>Notice that I don&#39;t want to register the app with a different name (&#39;test&#39; in this example). I want the app to continue being deployed with &#39;myApp&#39; name. I just change to change the URL suffix. </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> <span class="" style="white-space:pre">        </span>  <span class="" style="white-space:pre">        </span>preferenceAt: #serverProtocol put: &#39;https&#39;;</div>
<div>    <span class="" style="white-space:pre">                </span>preferenceAt: #serverHostname put: &#39;localhost&#39;;</div><div>    <span class="" style="white-space:pre">                </span>preferenceAt: #serverPort put: 443;</div><div>
    <span class="" style="white-space:pre">                </span>preferenceAt: #serverPath put: &#39;/test&#39;. <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>        try_files $uri @seasideTest;</div><div><span class="" style="white-space:pre">                </span>}</div></div><div><br></div><div><br></div><div><div>        location @seasideTest {</div>
<div><span class="" style="white-space:pre">                        </span></div><div>          include fastcgi_params;</div><div>          fastcgi_pass seaside;</div><div><br></div><div>        } </div></div><div><br></div><div><br></div><div>
<div>      upstream seaside </div><div>      {</div><div>        server localhost:9001;</div><div>      }</div></div><div><br></div><div><br></div><div>However, if I browse  &#39;<a href="https://localhost/test">https://localhost/test</a>&#39; I get a &quot;<span style="color:rgb(0,0,0);white-space:pre-wrap">/test not found&quot;. And in nginx logs I get &quot;</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">&quot;     </span></div>
<div><br></div><div>Any idea what I am doing wrong? Maybe I still need a rewrite of the url from &#39;/test&#39; to &#39;/myApp&#39; ? ...</div><div><br></div><div>Thanks in advance, </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>