<div dir="ltr">mmmmm weird... I tried with one single gem (just in case) and with no rewrite....a nginx conf as simple as possible.... nothing strange, and still same problem. <div><br></div><div>Any ideas what could be wrong? swazoo server works fine... is there anything known I should do to manage back button when using an external web server?</div>
<div><br></div><div>Thanks, </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 22, 2014 at 4:04 PM, Mariano Martinez Peck <span dir="ltr">&lt;<a href="mailto:marianopeck@gmail.com" target="_blank">marianopeck@gmail.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 dir="ltr">Hi guys,<div><br></div><div>I have a seaside website in which I do some rewrites. If I use a swazoo server, the back button works as expected. However, when I deploy it using nginx + rewrites it doesn&#39;t work anymore. I do have a #updateUrl: in my main component and I can see the URL in the browser to be updated. I also see that the request is being processed. However, the page renders again the same page...so it does not goes back. _k does change as well in the browser URL.</div>

<div><br></div><div>My setup is with gemstone, nginx and fastcgi. (I cc&#39;ed gemstone in case this is the problem.....)</div><div><br></div><div>Any help would be appreciated.</div><div><br></div><div>I paste the configuration I am using in case someone can help me.</div>

<div><br></div><div>The important part of nginx is this:</div><div><div><br></div><div>location ~* /clientXXX/appYYY {</div><div><span style="white-space:pre-wrap">        </span>rewrite ^/clientXXX/(.*)$ /$1 break;</div><div>
<span style="white-space:pre-wrap">        </span>try_files $uri @seasideclientXXX;</div><div>}</div><div><br></div><div><br></div><div>location @seasideclientXXX {</div><div><span style="white-space:pre-wrap">        </span>include fastcgi_params;</div>

<div><span style="white-space:pre-wrap">        </span>fastcgi_param REQUEST_URI $uri?$args; </div><div>  <span style="white-space:pre-wrap">        </span>fastcgi_pass seasideclientXXX;</div><div> <span style="white-space:pre-wrap">        </span>fastcgi_next_upstream error invalid_header timeout http_500;</div>

<div>} </div><div><br></div><div><br></div><div>My app is registered as &#39;appYYY&#39; and I execute this in the image:</div></div><div><br></div><div><div>| application | </div><div>application := WADispatcher default handlerAt: &#39;dp&#39;.</div>

<div>application <span style="white-space:pre-wrap">        </span></div><div><span style="white-space:pre-wrap">        </span>preferenceAt: #serverProtocol put: &#39;https&#39;;  <span style="white-space:pre-wrap">        </span></div>
<div><span style="white-space:pre-wrap">        </span>preferenceAt: #serverHostname put: &#39;localhost&#39;;<span style="white-space:pre-wrap">        </span></div><div><span style="white-space:pre-wrap">        </span>preferenceAt: #serverPort put: 443; <span style="white-space:pre-wrap">        </span></div>

<div><span style="white-space:pre-wrap">        </span>preferenceAt: #serverPath put: &#39;/clientXXX/appYYY&#39;.</div><div><span style="white-space:pre-wrap">        </span></div></div><div><br></div><div>Thanks in advance, <span class="HOEnZb"><font color="#888888"><br clear="all">

<div><br></div>-- <br>Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br>
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br>
</div>