<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi guys, I've tried to ask pretty much everywhere, but no solution until now. I'm quite sure I'm doing something wrong here, but to be honest I'm not able to catch it.<div><br></div><div>I'm rewriting urls from <a href="http://test.foo.com">test.foo.com</a> to bar.foo.com.s3.amazonaws.com/test, and everything works like a charm. If I point the browser to <a href="http://test.foo.com/index.html">test.foo.com/index.html</a> nginx serves my static website exactly as I want. The problem I'm facing now is that I'm not able to have nginx serve my index.html by default, while retrieving <a href="http://test.foo.com/">test.foo.com/</a></div><div><br></div><div>I've tried both try_files and index so far, with no result. I've also tried to catch 404s and serve my index.html page (even though I guess this is a bad practice).</div><div><br></div><div>This is what I have right now:&nbsp;<a href="https://gist.github.com/9a1ca5095392fb083f05">https://gist.github.com/9a1ca5095392fb083f05</a></div><div><br></div><div>Can someone help me? I'm a bit out of ideas.</div><div><br></div><div>What is really strange to me is that (real example) <a href="http://test.stylej.am/">http://test.stylej.am/</a> answers with a 404, I really have no idea why try_files doesn't work... Maybe $url/index.html is not right and I should use another syntax?</div><div><br></div><div>&nbsp;&nbsp;ngw</div></body></html>