I just recently setup my app on my droplet and I can’t seem to access the webserver at port 80 via the ip address:
Here’s my iptables -L:
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
And my nmap -p 80 localhost:
Starting Nmap 6.40 ( http://nmap.org ) at 2014-12-18 22:26 EST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00017s latency).
PORT STATE SERVICE
80/tcp open http
Nmap done: 1 IP address (1 host up) scanned in 1.09 seconds
I can curl localhost from within the server but I can’t seem to access the app using the IP address on a browser. It says that the web page is not available.
Am I missing something that I need to do? I don’t want to use nginx or apache yet. I just want to run a daemon of my ruby server like this: rackup -p 80 -D.
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!
In most cases, rackup is only going to serve the content on localhost by default. Try specifying the --host parameter as well:
rackup config.ru --port 80 --host 0.0.0.0
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.