<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 class="" style="white-space:pre">        </span>rewrite ^/clientXXX/(.*)$ /$1 break;</div><div>
<span class="" style="white-space:pre">        </span>try_files $uri @seasideclientXXX;</div><div>}</div><div><br></div><div><br></div><div>location @seasideclientXXX {</div><div><span class="" style="white-space:pre">        </span>include fastcgi_params;</div>
<div><span class="" style="white-space:pre">        </span>fastcgi_param REQUEST_URI $uri?$args; </div><div>  <span class="" style="white-space:pre">        </span>fastcgi_pass seasideclientXXX;</div><div> <span class="" style="white-space:pre">        </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 class="" style="white-space:pre">        </span></div><div><span class="" style="white-space:pre">        </span>preferenceAt: #serverProtocol put: &#39;https&#39;;  <span class="" style="white-space:pre">        </span></div>
<div><span class="" style="white-space:pre">        </span>preferenceAt: #serverHostname put: &#39;localhost&#39;;<span class="" style="white-space:pre">        </span></div><div><span class="" style="white-space:pre">        </span>preferenceAt: #serverPort put: 443; <span class="" style="white-space:pre">        </span></div>
<div><span class="" style="white-space:pre">        </span>preferenceAt: #serverPath put: &#39;/clientXXX/appYYY&#39;.</div><div><span class="" style="white-space:pre">        </span></div></div><div><br></div><div>Thanks in advance, <br clear="all">
<div><br></div>-- <br>Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank" class="vt-p">http://marianopeck.wordpress.com</a><br>
</div></div>