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
}