qtwrk
December 26, 2019, 12:45pm
#1
I got this request from someone who wants to access his site via IP address instead of domain.
By default , in this example , I will use local host file to map domain “centos.local” to my internal IP “10.211.55.9”
so by design , when access by domain , it goes to websites
and when access by IP , it goes to 404
so here is how to enable it to be accessible by IP address.
set up webadmin console
in Cyberpanel, some advanced configuration needs to be done in OLS webadmin console. how to: first , run this line in SSH to setup login info for webadmin console /usr/local/lsws/admin/misc/admpass.sh and then, login into CyberPanel , and add...
go to Listener page , set both Default and SSL listener , add IP into domain map.
so before edit , there was only “centos.local” , so we add “10.211.55.9” , separated with ,
save and restart OLS
now try again with IP , now it loads same page as domain
NOTE:
it’s been said , the important things must be repeated thrice.
Let’s Encrypt and many other SSL cert vendors do NOT issue cert for IP address , so you may not be able to get valid HTTPS connection with IP address.
Let’s Encrypt and many other SSL cert vendors do NOT issue cert for IP address , so you may not be able to get valid HTTPS connection with IP address.
Let’s Encrypt and many other SSL cert vendors do NOT issue cert for IP address , so you may not be able to get valid HTTPS connection with IP address.
darb
December 31, 2019, 5:03am
#2
Excellent information; alternatively there are free domain names (.tk .ml .ga .cf .gq) available along with anycast DNS at Freenom.com which will get you a SSL cert.
jaac
April 24, 2020, 2:40am
#3
Hi qtwerk, thanks for your tutorial. Unfortunately it doesn’t work. I did add the IP into the default and SSL listener. IP address still giving me 404.
Please help. Thanks.
qtwrk
April 24, 2020, 2:47am
#4
Type your comment> @jaac said:
Hi qtwerk, thanks for your tutorial. Unfortunately it doesn’t work. I did add the IP into the default and SSL listener. IP address still giving me 404.
Please help. Thanks.
OLS or LSWS?
jaac
April 24, 2020, 2:49am
#5
Type your comment> @qtwrk said:
Type your comment> @jaac said:
Hi qtwerk, thanks for your tutorial. Unfortunately it doesn’t work. I did add the IP into the default and SSL listener. IP address still giving me 404.
Please help. Thanks.
OLS or LSWS?
I’m using OLS 1.6.12
Hello,
Do you guys also know how to point the webserver IP to a certain website/account in Cyberpanel?
I only have 1 website/account inside cyberpanel and I want that to be resolved or called when the IP is being accessed…
nettux
May 18, 2021, 2:01pm
#7
Essa dica foi a melhor que já li, sobre o CyberPanel… show!!