Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jul 2011
    Location
    New Zealand
    Posts
    34
    Thanks
    11
    Thanked 2 Times in 2 Posts

    How can I host two different websites using the same IP address

    Hi, as the title says I'm during to host two different websites using the same IP address. I have the two following domain names.



    How can I go about hosting these websites, I would consider buying a second IP address but my VPS hoster (digitalocean.com) does not offer this solution. Thanks, hopefully somebody can point me in the right direction. Thanks!

  • #2
    New Coder
    Join Date
    Jul 2011
    Location
    New Zealand
    Posts
    34
    Thanks
    11
    Thanked 2 Times in 2 Posts
    Hello once again! I have found a very quick and easy way to do this - https://mydailyhacks.wordpress.com/2...ne-ip-address/

    Remember to restart your apache2 (sudo service apache2 restart) once you've completed the tutorial (sadly I forgot this part and was stumped for awhile wondering why it wouldn't work lol).

    Please lock this topic . Thanks!

  • #3
    New Coder
    Join Date
    Sep 2014
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hay friend ,
    I have use the following way
    1.Click "Start" > "Run" and type in "inetmgr", this will open IIS Manager.
    2.Right-click on one of the websites you want to share the same IP and port and select "Properties".
    3.In the "Web Site" tab, click on "Advanced".

    In the "Advances Web Site Identification" screen, you will see an entry that by default reads:

    IP Address: Default
    TCP Port 80 (or 81 for your second web site)
    Host Header Value (nothing).
    Click on this entry and hit the "Edit..." button. You can now enter the details you want to share:

    Select the IP Address from the drop down list and type in the port number, for example "80". Now type in the host-header value, which will be the address people type into their browser, for example: "test.stevefenton.co.uk".

    Click on "OK", the click "OK" again, then click "Apply" in the properties window.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •