Server IP Address Directed to a specific website

Discussion in 'General' started by Indieben, Mar 29, 2018.

  1. Indieben

    Indieben Member

    Hi there,
    With massive credit to Till yesterday, I have managed to establish that it is possible, where absolutely necessary and in perhaps some rarer cases, that an IP can be added to a particular website so that a website can be accessed via an internal IP address and that this is achieved in System - > Server IP addresses where it would be added, along with the ports (in my case 80,443,8080) and AFAIK, HTTP NameVirtualHost should always be ticked.
    Then, I followed by adding a line within /etc/network/interfaces (presuming that you are running Debian). I added this line (beneath netmask):

    post-up ip addr add dev eth0
    So my interfaces file looks like this now:

    # The loopback network interface
    auto lo
    iface lo inet loopback
    # The primary network interface
    #allow-hotplug eth0
    #iface eth0 inet dhcp
    auto eth0
    iface eth0 inet static
    post-up ip addr add dev eth0
    Always then restart your network service for it to take effect.

    I hope this is useful to someone else but here's my question...

    When I visit, I simply get squirrelmail rather than my website - not sure what went wrong there? Any help would be greatly appreciated. Thanks.

Share This Page