Nginx – Rewrite "https://files.mydomain.com/files" to "https://files.mydomain.com"
Currently, I am able to visit: https://files.mydomain.com/files. Even if I go to https://files.mydomain.com, it will redirect automatically to https://files.mydomain.com/files successfully. Instead, I would like for NGINX to automatically rewrite https://files.mydomain.com/files -> https://files.mydomain.com My current NGINX code: http { server {…