如何在这个位置使用我的index.htm?

我需要http://suporte.ok.org.brredirect到其index.htm (请参阅root指令),而不是重写它到Github …如何做到这一点? 都在生产中,是一个具体的案例。


我正在testing许多变体的location = / { try_files ...}但没有人工作。 使用UBUNTU 16 LTS服务器。

/etc/nginx/sites-available/ok.org.br

 server { server_name suporte.ok.org.br; root /var/www/suporte.ok.org.br; index index.html index.htm; #?? location =/ {...} is not working! location / { rewrite ^/?git$ http://github.com/okfn-brasil/suporte break; rewrite ^/?([vV][\.\d]+)$ http://github.com/okfn-brasil/suporte/tree/$1​ break; rewrite ^/?tickets$ http://github.com/okfn-brasil/suporte/issues break; rewrite ^/?(?:(?:tic|ticket)/)?(\d+)$ http://github.com/okfn-brasil/suporte/issues/$1 break; rewrite ^/?(.+)$ http://github.com/okfn-brasil/suporte/$1 break; } }