Hi,
I am new to nginx, I have setup http and https for the same domain.
I wanted to redirect only 1 location from http to https and not the entire domain.
Like, http://test.com/irfan to https://test.com/irfan
I have tried following but I gets error while reloading nginx
location /irfan {
root /var/www/nginx-default;
# rewrite ^ https://test.com/irfan permanent;
index index.html index.htm;
expires 1m;
}
Thanks in advance