[Tutorial]How to add 2nd IP for websites

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.

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.

for LiteSpeed Enterprise , please go to

I added listener for dedicated IP and added vhost to it. But when I open IP it shows me 404. But when I open website it shows fine. Also when I set IP to main cyberpanel IP in my local DNS it still opens the website. It means IP is not dedicated. I have latest Cyberpanel V2.

Will the cyberpanel team add a quick IP selection without having to configure the ports in the webadmin?

1 Like

Hi, I can’t able to assign a separate IP for each website on a single server.
How to sort out this problem?
I can’t even know what should done?
please me out or send tutorials.

Alright however how to choose ip address of site while making site? There is no choice to pick ip address while making area.

I am stuck and don’t know what’s wrong. Here is what I have done so far:

Added IPs in Linux
Graceful restart in Webadmin → IPs showed up
Created a new website in Cyberpanel
Created listeners in Webadmin for both port 80 and 443
For the 443 listener, added
/usr/local/lsws/conf/vhosts/MYDOMAIN/privkey.pem
/usr/local/lsws/conf/vhosts/MYDOMAIN/fullchain.pem
Graceful restart in Webadmin
Installed Wordpress in Cyberpanel

When I visit the IP, I get a 404 page, so it looks to me like it’s not routed properly. A Wordpress site should show up. Am I missing something?

Type your comment> @navi said:

I am stuck and don’t know what’s wrong. Here is what I have done so far:

Added IPs in Linux
Graceful restart in Webadmin → IPs showed up
Created a new website in Cyberpanel
Created listeners in Webadmin for both port 80 and 443
For the 443 listener, added
/usr/local/lsws/conf/vhosts/MYDOMAIN/privkey.pem
/usr/local/lsws/conf/vhosts/MYDOMAIN/fullchain.pem
Graceful restart in Webadmin
Installed Wordpress in Cyberpanel

When I visit the IP, I get a 404 page, so it looks to me like it’s not routed properly. A Wordpress site should show up. Am I missing something?

I figured out that I need to add the IP to the listener to be able to reach the website directly through the IP. That doesn’t help me though. When I open the site via domain, I am still getting a 404.

hello, i have tru to add 2nd ip listener fellowing your step but i get error
This port is already in use.
when i try to add new listener with 80 port

1 Like

very nice and good

2nd IP is great idea! Thank you so much for your guide!

it’s really nice, thank you for sharing with us

Is there the possibility of pointing to another server (which is on the same network), using a subdomain, in CyberPanel?
Ex: I have a Cyber ​​server on IP 192.168.10.50 and I want the CybePanel to point to the other server using the srvcloud.mydominio.com subdomain, in 192.168.10.51

I have followed the tutorial step by step and everything seems correct.
When I visit the IP, I get a 404 page, in Cyberpanel new site show main ip,… not new ip.
I suppose that need change some file and add new ip to assign this to new site, but where?
Am I missing something?

I get this with ip a

[almalinux@vps-xxxxxxxxx ~]$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether fa:16:3e:fd:38:10 brd ff:ff:ff:ff:ff:ff
inet xxx.xx.xx.xxx/32 scope global noprefixroute eth0 (aditional ip)
valid_lft forever preferred_lft forever
inet xx.xx.xxx.xxx/32 scope global dynamic noprefixroute eth0 (main ip)
valid_lft 66203sec preferred_lft 66203sec
inet6 2001:41d0:304:200::869/56 scope global noprefixroute
valid_lft forever preferred_lft forever
inet6 fe80::f816:3eff:fefd:2910/64 scope link noprefixroute
valid_lft forever preferred_lft forever

Some help?
Thanks.

A Website can have multiple IP addresses when you hosted it at multiple locations. Why? It can be for load balancing or redundancy… Or to serve web pages based on the user location etc… If you are using Linux, you can use tools like dig to get DNS information for a specific website.

thank you for sharing with us..