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
- 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.