<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 'myApp' and I am deploying it at: <a href="https://localhost/myApp">https://localhost/myApp</a> and I want to have it under '<a href="https://localhost/test">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. </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: 'https';</div>
<div> <span class="" style="white-space:pre">                </span>preferenceAt: #serverHostname put: 'localhost';</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: '/test'. <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 '<a href="https://localhost/test">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, </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>