Accessing localhost and nginx

Discussion in 'Installation and "How-To" Questions' started by brainforge, Feb 20, 2018.

  1. brainforge

    brainforge Kilo Poster

    Messages:
    48
    I found I could not access my default domain using wget from the command line.
    I could access other domains and subdomains on the server (with same IP) OK.

    # wget brainforge.co.uk
    Resolving brainforge.co.uk... 127.0.0.1
    Connection refused

    Looks like Nginx is unable to accept connects on 127.0.0.1

    Looking at /etc/hosts I found this:
    127.0.0.1 brainforge.co.uk brainforge localhost.localdomain localhost hostprovidermagic.info
    87.106.18.57 more.hostprovidermagic.info

    Changing it to this solves the immediate problem, with no obvious issues
    127.0.0.1 brainforge localhost.localdomain localhost hostprovidermagic.info
    87.106.18.57 more.hostprovidermagic.info brainforge.co.uk

    Is there a better / correct way of doing this?
    Might Plesk one day change it back?
     

Share This Page