News for hackers. Stuff that matters.
Re:Ask HN: Setting up/deploying a REST based service – need ... by jtchang on Tuesday January 06, 2015 @02:26PM (#8846386)
Do you mean firewall and not VPN? VPN means something pretty specific.

Separate servers isn't necessarily bad. In fact it is a "best practice".

To get started if you wanted everything on one server:

  Web server with port 80 and 443 open (apache or nginx).
  Web server proxies to app server (unless you are on PHP)
  App server connects to database on specific port. Port is not exposed to outside world.
Re:Ask HN: Setting up/deploying a REST based service – need ... by taurenk on Tuesday January 06, 2015 @02:34PM (#8846435)
Thank you for the tip- still a bit confused (and maybe mixing up terms). If I wanted to keep the DB and App server on separate servers, would i leave them out in the open or house them in a private network?
Re:Ask HN: Setting up/deploying a REST based service – need ... by v_ignatyev on Tuesday January 06, 2015 @04:23PM (#8847214)
Remove Public IP for DB server. Keep them in one private network. You don't need VPN. Servers in any data-center are already connected into one network. You can use iptables to prevent external connections to your DB.
Re:Ask HN: Setting up/deploying a REST based service – need ... by rubyn00bie on Tuesday January 06, 2015 @03:26PM (#8846762)
Generally use a private network for having your servers communicate with eachother. It also makes setting up IP Tables to lockdown access to your DB server much easier/intuitive.