DEV Community

Discussion on: PM2 listening on port 443 shows EADDRINUSE: address already in use :::443

Collapse
 
dmahely profile image
Doaa Mahely

Hi James, thanks a lot for your input.
Yes, although I wanted to use authbind with pm2 but it seems impossible with no documentation and open issues with no responses.
I've been trying to do something like this where I installed nginx and set up the configuration, but got stuck at the last step where I need to reload Nginx but when I need to run or reload it for the config to be updated.

$ sudo nginx -s reload
nginx: [error] invalid PID number "" in "/run/nginx.pid"
Enter fullscreen mode Exit fullscreen mode

Some of the commands are different because of the different Ubuntu installations. I will check out the link you mentioned and get back to you 🙏

Collapse
 
dmahely profile image
Doaa Mahely

Update: Site is up and running!

I wouldn't have found that page of documentation with that title. Now I learned yet another method of solving this particular problem 😄
Thanks a lot for taking the time to help James!

Thread Thread
 
codebubb profile image
James Bubb

Excellent! Out of interest did you use Nginx in the end or Apache?

Glad it's working for you now.

Thread Thread
 
dmahely profile image
Doaa Mahely

I ended up using Apache and configuring virtual hosts to redirect the traffic, because I couldn't find any complete Nginx tutorials! The Apache method is dead simple and I'm surprised I didn't come across it in my research.

Cheers!