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):

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

    Code:
    # 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
    address 192.168.1.110
    gateway 192.168.1.254
    netmask 255.255.255.0
    post-up ip addr add 192.168.1.137/24 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 192.168.1.137, I simply get squirrelmail rather than my website - not sure what went wrong there? Any help would be greatly appreciated. Thanks.
     

Share This Page