Localhost not working unless I add /login

When I type localhost:8080 it doesn’t work. It shows a screen with just HTML text that says “It Works!” But if I type localhost:8080/login it loads the UI.