location /photos { auth_pam off; return 301 http://$host:2283/; }