location /print2 { return 301 $argsitepath; } location ~ ^(.*)/print2$ { return 301 $1;…
- User
location /print2 { return 301 $arg_site_path; }
location ~ ^(.*)/print2$ { return 301 $1; }is it okay?
- Assistant
Your NGINX configuration has a couple of potential issues. Let's examine both
locationblocks individually and propose improvements if necessary:First Block
location /print2 { return 301 $arg_site_path; }