Accessing standard website directly via IP

Hi, I need help.

I have a server installed with cyberpanel and ols.

How do I ensure that anyone who accesses the IP is shown the default website?

Example:

mywebsite.compublic_html
direct access to 5.161.55.10 → shows public_html from mywebsite.com

This is a simple task in nginx:

(need to delete/move/rename file /etc/nginx/conf.d/parking.conf)

but I don’t know how to do it in ols or cyberpanel.

Hi, you can follow that tutorial on OLS to make that possible:
https://openlitespeed.org/kb/ip-based-virtual-hosting/

Also there is a tutorial on CP:

Hi, I’m going to try this. It looks pretty detailed, thanks. :slight_smile: