Admin console display problem

I am configuring Nginx on ubuntu system.
Once configured, when I call the url https://myhost/admin-console/ it directs me to the admin console https://myhost/login.jsp?url=%2Findex.jsp
It returns 404 Not Found.
This is the Nginx configuration.
Where am I going wrong?

location /admin-console/ {
        # Rewrite path to remove /admin-console before passing to Openfire
        #rewrite ^/admin-console/(.*)$ /$1 break;

        proxy_pass http://127.0.0.1:9090/; # Openfire HTTP port
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        

        # Fix relative paths for JSP resources
        sub_filter '/images/' '/admin-console/images/';
        sub_filter '/scripts/' '/admin-console/scripts/';
        sub_filter '/styles/' '/admin-console/styles/';
        sub_filter_once off; # Apply substitutions globally
    }

Iā€™m not sure if Openfireā€™s admin console is capable of being served on a context root other than the root. I never tried that. If the admin console redirects you to a non-relative URL, then that would explain the observed behavior.

1 Like

Try signing in from a different browser or browser tab or create a new browser profile You can try a private browsing session.
Clear your cache and cookies
Clearing your cache and cookies may help.
Check your internet options
Make sure the ā€œDo not save encrypted pages to diskā€ option is not selected You can do this by navigating to Tools > Internet Options > Advanced > Security.
Check your web address
If the port value is different from the one specified in the web address, change the correct meaning of the web address in your browser