Python flask app routing in cpanel: can only access root url
问题 I have a python app set up in cPanel. I have set the app URL to backend and when I query mydomain.com/backend/ it gives back the app's root view (which is just an html "hello there"). The rest of the endpoints are the ones I need but I get back a 404 on every other URL @app.route('/') def hello_world(): logger.debug("Hi there") return "<h1 style='color:red'>Hi there</h1>" @app.route('/test', methods=['POST','GET']) def test(): logger.info("Got test request") return {'ok' : 'success!'}