I want to redirect only https://guacamole.example.com/#/ (aka guacamole homepage) to https://denied.example.com. But, I don't want https://guacamole.example.com/#/sessiondetails/logindetails to be redirected.
But when i use in nginx this:
location = / {
return 302 http://denied.example.com/;
}
it redirects all url requests no matter if it's the root or any url on guacamole.example.com. This nginx block works on another html server, but just doesn't work on guacamole.
I have also tried
location = /#/ {
return 302 http://denied.example.com/;
}
but still the same problem.
I came across this website: https://www.apponfly.com/ Where they achieved exactly the same thing that doesn't work for me. They have blocked the access to the guacamole homepage by redirecting to a different domain. But i have noticed they have a "/rdp/" directory in url, as a root for the /#/ which i don't have. What do they use the "/rdp/" for, and how can i do that?
Sorry if i said something wrong, i'm absolutely new to nginx and guacamole