I have an Amazon EC2 instance running with an elastic IP 12.34.56.78. I own a domain name example.com which I've set up to point to the EC2 instance. I'm running an Apache web server on my EC2 instance on port 80, and I can see the website when I visit both http:// 12.34.56.78 and http:// example.com.
I'm also running a node.js server on port 3000. I can see the nodejs page when I visit http:// 12.34.56.78:3000, but not when I visit http:// example.com:3000. My EC2 instance's security group allows TCP/UDP on port 80, 443, and 3000. Why can't I see my node.js page when I visit my site via its domain name? (I want to run one Apache server and one node.js server)
I think I'm having this problem because I'm using cloudflare to link http:// example.com with 12.34.56.78. But even when I try to connect with http:// direct.example.com:3000, I cannot see my node.js server. (the direct subdomain is supposed to go straight to 12.34.56.78 with no work done by cloudflare)
Any ideas?
you can't, because if you pass your domain through cloudflare by clicking cloud-image, your port will be only available like this :
For requests made via HTTP (all domains on CloudFlare):
80 8080 8880 2052 2082 2086 2095
For requests made via HTTPS (only domains subscribed to Pro, Business, or Enterprise):
443 2053 2083 2087 2096 8443
my solution is create one sub-domain that not pass through cloudflare for any instance like ssh, python etc.
https://support.cloudflare.com/hc/en-us/articles/200169156-Which-ports-will-CloudFlare-work-with-
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With