Node.js Server with Apache

February 12, 2018 1.1k views
Apache Node.js MySQL PHP Ubuntu 16.04

Hi everyone,

I'm currently using Docker, and i have installed portainer and done tests using httpd etc.

Basically i have a Node.JS server that i want to be running at server.example.com that is restricted to requests from example.com and dev.example.com ( should i do something except using CORS ? ).

I want to use the example.com and dev.example.com websites at port 80.

Meanwhile this i need to restrict access to phpmyadmin and portainer to only be available in localhost too ...

Since i'm a noob at server managament and this is a new world for me yet .. i wonder if something can guide me to what i need to do.

For the restrictions i think i need to use ufw / iptables. but i don't know how i can make this things work together.

Be the first one to answer this question.