Hi there,
I am on a Ubuntu 16.04 droplet running nginx, php7.1-fpm and trying to run a nodejs application over ssl.
To install Nodejs I followed this tutorial: https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-16-04
I cannot even get this line to work:
curl http://localhost:8080
I get:
curl: (7) Failed to connect to localhost port 8080: Connection refused
I have open port 8080 on UFW.
What else can I do?
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!
When you execute the hello.js script in the console, you need to open a new console window and login again and then run the curl http://localhost:8080.
And you should remove that firewall rule again.
Refer to this tutorial to run your nodejs in background.
To run it over ssl you can use nginx reverse proxy.
Hope this helps.
This comment has been deleted
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.