CyberPanel Community

Accessing standard website directly via IP

FS
Francieli Silva #1

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.

2 replies
EK
Emin Kokalari #2

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:

FS
Francieli Silva #3

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

Sign in to reply