Configuring Localhost to Use Custom Domain Name for Site Access

Hello everyone,

I’ve established a site called on my local Ubuntu server. While I can access it at localhost:8000 after initiating ‘bench start’, accessing it at 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 add-to-hosts.

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