Website fails to be opened: ERR_CONNECTION_REFUSED

Follow

Comments

4 comments

  • Avatar
    Andre Freitas

    In my case, the nginx appears to be on.

     

    I restart nginx = nothing.

    I restart apache = nothing.

    I reboot server, all websites are back on.  

    Please help, as I have no clue.

  • Avatar
    Ivan Postnikov

    Hello @Andre,

    As I can see, you have already submitted a ticket to us. 

    That is the best option for this case as deeper investigation is required.

  • Avatar
    absolutepast (Edited )

    Hi @Alexandr,

    Thanks so much for this.

    It seems that Nginx was disabled 'automatically' - ie: my server and sites were running fine, and then all of a sudden overnight, this issue occured. It was resolved by following your solution.

    Is there any reason that this issue could happen 'automatically' - ie: with no config changes done by me?

    Thanks

     

  • Avatar
    Alexandr Redikultsev

    Hi @absolutepast,

    There is no way nginx can be stopped automatically without any failures. I would recommend checking journalctl logs for nginx and /var/log/nginx/error.log file for some error messages and configure automatic restart of ngixn on failure on a systemd level: https://www.freedesktop.org/software/systemd/man/systemd.service.html

Please sign in to leave a comment.

Have more questions? Submit a request