Instalado OK. Funcionou bem por um dia. De repente parou de funcionar

first, some research should have been done.
Second, He’s talking of apache2 if I’m not mistaken. Article linked above contains nginx which plays very well with discourse.
Also, not to forget, there are 3 services fighting for port 80 & 443 above.

EDIT:
Found a howto though

Reason why it doesn’t works well is well documented by sam in comment below that tutorial. Please read it.