Configuring Localhost to Use Custom Domain Name for Site Access

Hello everyone,

I’ve established a site called erp.aalamsoft.com on my local Ubuntu server. While I can access it at localhost:8000 after initiating ‘bench start’, accessing it at erp.aalamsoft.com:8000 poses a challenge. But, it functions properly when I utilize any text with the .localhost extension. However, this isn’t the behavior I expected.

In an attempt to resolve this, I executed the command bench --site erp.aalamsoft.com add-to-hosts.

How can I access my site using only its designated name?