Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developersβ€’9mo agoβ€’
3 replies
Radian

Node.js Domain Pointing Problem

hey i have a Node.js App using Node server (port : 51728)
i used nginx to make it in port 80
is currently accessible via the VPS ip
i created a A record to point to the ip so it could be accessible with my domain name but it doesnt work
i will share my record and my configuration :
DOMAIN. 1 IN A VPSIP ; cf_tags=cf-proxied:true

nginx conf :
server {
        listen       80;
    server_name DOMAIN;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

    location / {
        proxy_pass http://localhost:51728;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }
server {
        listen       80;
    server_name DOMAIN;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

    location / {
        proxy_pass http://localhost:51728;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

pointing shared ip on my domain
Cloudflare DevelopersCDCloudflare Developers / general-help
14mo ago
Pointing domain from cloudflare to shopify?
Cloudflare DevelopersCDCloudflare Developers / general-help
3y ago
Problem with domain
Cloudflare DevelopersCDCloudflare Developers / general-help
2mo ago
Cloudglare domain Problem
Cloudflare DevelopersCDCloudflare Developers / general-help
2mo ago