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".
---
nginx for Windows http://nginx-win.ecsds.eu/