HTTP 404 when trying to use tunnels
basically i have a raspberry pi and im running a flask app on there going to localhost:5000 and i configured it in the dashboard so that it would go to my registered domain (printyourowndunhamid.com) and service to the local host but when i start both the app and cloud fare i just get http 404 upon entering the website. here are some logs:

4 Replies
Support AI
I'm happy to help you troubleshoot the issue.
Based on the information you provided, it seems like you've set up Cloudflare to proxy requests from your domain (
printyourowndunhamid.com
) to your Raspberry Pi's localhost (localhost:5000
). However, you're getting an HTTP 404 error when accessing your website.
To help you resolve this issue, I'll need to ask a few questions and provide some guidance.
1. Can you confirm that your Flask app is running and accessible on localhost:5000
when you access it directly from your Raspberry Pi (without going through Cloudflare)?
2. Have you configured Cloudflare to use the correct protocol (HTTP or HTTPS) for your Flask app? You can check this in the Cloudflare dashboard under the "SSL/TLS" tab.
3. Are you using any specific Cloudflare features, such as Page Rules or Workers, that might be interfering with the request?
4. Can you provide more details about your Cloudflare configuration, such as the DNS settings and the proxy settings for your domain?
Additionally, I'd like to suggest some troubleshooting steps:
1. Check the Cloudflare logs to see if there are any errors or warnings related to your domain or requests.
2. Verify that your Flask app is listening on the correct port (5000) and that there are no firewall rules blocking incoming requests.
3. Try accessing your website using the curl
command from your Raspberry Pi to see if you can reach your Flask app directly.
Please provide more information about your setup and configuration, and I'll do my best to help you resolve the issue.
References:
* Cloudflare documentation: Configuring Cloudflare for your website
* Flask documentation: Running Flask on a Raspberry PiThis is an AI generated response, it may not be 100% accurate. Please validate the output. You can ask followups by replying to this message or mentioning me.
i’m gonna be offline for the night but will respond in the morning
I think tunnel is not properly connected to your Raspberry Pi
Cloudflare Docs
Configure cloudflared parameters
Remotely-managed tunnels run as a service on your OS. You can modify the Cloudflare Tunnel service with one or more general-purpose tunnel parameters.