set domain name in localhost code example Example: custom localhost domain windows # C:\Windows\System32\Drivers\etc\hosts 127.0.0.1 beans.beans.local