2019-1-17 Dokku mess up my nginx config (and How to fix it)

run 2 `sudo ln -s` fix the issue


I was trying to use Dokku today on my Digital Ocean machine. (1G memory, 25G Disk, SFO2 region)
that's the only thing I do on that Droplet today.

Dokku is like a mini-Heroku.


My blog (you are reading it right now) (domain: 1c7.me) went down.
seem like it somehow Dokku mess up my nginx config.
(Can't be sure, but seem like so)

How to fix it

  1. I check /etc/nginx/sites-enabled/
    it's empty

  2. and I check /etc/nginx/sites-availabled/
    there are 3 file:
    1c7.me-ssl.conf 1c7.me.conf default

so I try:

sudo ln -s /etc/nginx/sites-available/1c7.me-ssl.conf /etc/nginx/sites-enabled/1c7.me-ssl.conf

sudo ln -s /etc/nginx/sites-available/1c7.me.conf /etc/nginx/sites-enabled/1c7.me.conf

sudo nginx -t

sudo nginx -s reload

Work for me

Now my Ghost blog working again