Relative Content

Tag Archive for phpapachecentosvirtualhostalmalinux

Config a CwPanel local server to understand local domains

I have the following situation:
I have a local test server where I use Almalinux 8 with CWPanel.
I have several test domains configured on it:
192.168.1.50/~virtual
192.168.1.50/~cliente
192.168.1.50/~sistema.
I would like that when I type in the browser: local.virtual, my computer understands that I typed 192.168.1.50/~virtual. Similarly, if I type local.cliente, it should understand it as 192.168.1.50/~cliente, and so on. I have already configured the “hosts” file to redirect local.* calls to 192.168.1.50, but where do I configure it in CWPanel so that Apache understands where it should direct the requests?