CyberHosting

[Tutorial]How to add 2nd IP for websites

edited August 2018 in Tutorials

This is quick guide how to add another IP for websites.

  1. enable webadmin console by this guide

  2. go into webadmin , on listener, add 2 more with 2nd IP (I don't have multiple IP machine at moment, so in this case I will use an IPv6 to mimic second IP)

first one is for port 80 ,select IP you wish to use for this site , disable secure since it is not SSL , binding is optional to how many CPU you have on your server.

second one is for port 443 , same as above , but enable secure,

since this is SSL listener, so you must set a default SSL cert and key, as screenshots , you can grab the sites you wish to place on this IP.

  1. now we need to map vhost to both listener

  1. now click save , and don't forget graceful restart to take effect.
Tagged:
Tagged:

Comments

  • Ok but how to select ip address of website while creating website? There is no option to choose ip address while creating domain.
  • hmate783 said:

    Ok but how to select ip address of website while creating website? There is no option to choose ip address while creating domain.

    no for now , you have to create it in panel , then manually change it in listener
  • i want one ip for one website, and another ip for another website. So is it possible or not? Or just possible one ip for all websites?
  • edited November 13
    yes, create 4 listener for 2 web site

    IP1 80 port , IP1 443 port for domain1

    IP2 80 port , IP2 443 port for domain2

    443 port listeners need to configure SSL cert
  • Ok, thanks for the answers.
    But how to choose domain while seting up listeners? i can not see any domain coloumn to enter or to choose.
    How will i assign listener(ip) to specified domain?
  • Ok, in last image there is a domain column. And what will i enter for virtual host? Same text in the image?
  • you will have vhost after you create website in panel
  • When I try to create a new listener following this tutorial, the only IP address from the drop down list is the main server IP. My 16 additional IP addresses haven't been mapped to the server, apparently.

    Is there a guide showing how to configure the additional IP addresses and make them available for use with additional listeners?
  • from what I know , it reads from system config

    what is result when you run commands like ip -a ?
  • edited October 10
    I try to create a new listener following this tutorial, the only IP address from the drop down list is the main server IP. My 16 additional IP addresses haven't been mapped to the server, apparently.
  • Ruby89 said:

    I try to create a new listener following this tutorial, the only IP address from the drop down list is the main server IP. My 16 additional IP addresses haven't been mapped to the server, apparently.

    Please run a `ip a` command and see if all IPs are mapped there
  • @usmannasir will this be available in cyberpanel anytime soon ?
  • But from where we can get IPs?

    from Digital Ocean?

    But, DO is supposed to add only one IP to aq Droplet...

    Then how?
  • you should contact DO support for how to add more IPs to the droplet , and then follow this guide.
Sign In or Register to comment.
CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!