Lukas Tribus Wrote:
-------------------------------------------------------
> But *not* with "/".

You can, see my map example, used here to redirect http to https except root
(/).
site.com => tell user we've gone to ssl in plain http
site.com/ => tell user we've gone to ssl in plain http
site.com/support => 301 redirect to ssl

The challenge here is to redirect without ending up in a loop as "name" and
"name/" are different to map but the same to a location block.

Maybe instead of a 301 do a rewrite/break, ea. "/" => "/index.html".

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?2,262128,262147#msg-262147

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to