Localhost Refused to Connect

I’m creating a dynamic website using fly.io. My first webpage (on the base URL) works fine, but beyond that, no pages work.
I get a ‘This site can’t be reached - localhost refused to connect’ error. I’m new to fly.io and appreciate any help, thanks!

Can you share more about your app? What’s it doing? What type of server is it?