Hi,
I have worked with Nginx only short time and I'm led to in deep trouble with one configuration task.
Basically I'd like to redirect all other requests than root document request to https but I can't find a way to do it.
Currently I have this in nginx.conf
rewrite ^(.*) https://www.certainsite.com$1 permanent;
it redirects every plain http request to https by responding http 301
HTTP/1.1 301 Moved Permanently
But how to exclude only the root from this rule.
thanks for any response !
kp