Alright I worked on troubleshooting this for a whole day, trying to get my Node app to be accesible via the browser but to no avail.
when I start my node via command line, it runs successfully on port 1100, but I cannot access either on my IP_address:port or domain: treck.co via the browser
this is my nginx config file
/etc/nginx/conf.d/boxedsales.com.conf
server {
listen 80;
server_name treck.co;
location / {
proxy_pass localhost:1100;
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;
}
}
I have restarted nginx and also rebooted my droplet. Still cannot access when I visit on browser.
The node app is in directory /var/www/
Thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
This comment has been deleted
Hi!
Assuming treck.co is your actual domain, scanning it for open ports with nmap treck.co doesn’t show port 80 being open. Is Nginx currently running? Have you set up any firewalling? If so, remember to open port 80.
On the droplet, what’s the output of sudo netstat -plunt ?
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.