You can edit .lando.yml to get nice human readable names for your services such as Lando accomplishes this with an actual ON THE INTERNET wildcard DNS entry that points all subdomains to localhost/ This means that if you lose your internet connection, you will not be able to visit your app at these addresses. However, you can take steps to work around this restriction or use your own custom domain and handle the DNS yourself with dnsmasq or other solution.

There is also a known issue called DNS rebinding protection which blocks this functionality.

Proxying is not required

As long as your containers or services expose ports 80 and/or 443, Lando will smartly allocate localhost addresses for them. Proxying is meant to augment how your app is accessed with additional domains.


# My apps name
name: trivial-proxy

# Docker compose files that contain my apps services and tools
  - compose.yml

# Proxy settings for my services

  # Proxy settings for the "web" service defined inside my compose.yml.
  # NOTE: You can specify more than one service.
  # NOTE: `web` is particular to this app, run `lando info` to see a list of services
  # for yours

    # By default this will proxy both port 80 and 443 giving you
    # and

    # You can also add any subdomains you want

    # If you do not specify a domain ending in `` you will need
    # to add an entry in /etc/hosts
    # See:
    - frank.bob.joe
    - tippecanoe.tyler.too

    # If your service uses a different port you can add that to the end of the service
    # If your service uses both http and https use the http port

    # Add a wildcard domain
    # NOTE: this needs to be encapsulated in quotes because * is a special character
    - "*"
    - "wild.*"

Custom domains need to be added to your hosts file.

If your custom domain does not end in, then you are going to need to add it to your hosts file so that it points to

You will need to restart your app with lando restart to apply the changes. You can check out the full code for this example over here. You can also use our legacy proxy config format.


By default, proxying is turned on and will try to bind to ports 80 and 443. If these ports are taken, Lando will attempt to bind to alternate ports. These things are all configurable by editing the Lando global configuration .config.yml.

proxy: ON
proxyHttpPort: 80
proxyHttpsPort: 443
proxyDash: 58086
  - 8000
  - 8080
  - 8888
  - 8008
  - 444
  - 4433
  - 4444
  - 4443

You will need to do a lando poweroff to apply these changes. You also should not change the proxyDomain unless you know what you are doing!

You can find what process is bound to the default ports of 80 and 443 and try to kill those processes to have lando automatically create URLs like instead of

# Find out if any service listens on those ports.
sudo lsof -n -i :80 | grep LISTEN
sudo lsof -n -i :443 | grep LISTEN

# If any services are listed, you can try killing them or stop them a different way.
sudo kill -9 $PID

Working Offline or Using Custom Domains

If you are working offline and/or have added custom domains and want to get them to work, you will need to edit your hosts file. Generally, this file is located at /etc/hosts on Linux and macOS and C:\Windows\System32\Drivers\etc\host on Windows. You will need administrative privileges to edit this file.

Here is a good read if you are not very familiar with the hosts file, how to edit it and how it works.

Here is an example:

# Get my `` domain to work offline

# Get my custom domain to work billy.dee.williams

Using Wildcards in Custom Domains

If a service should be be able to listen to multiple domain names following a common pattern you can use the * wildcard character to match any amount of alphanumeric characters and hyphens/dashes (-).

To match and you can for example use * or *.*

Wildcard domains need to be encapsulated in quotations

If you are using a wildcard domain you will need to write it as "*" and not * due to the way yaml parses files. If you do not do this you should expect a yaml parse error.

Checking Proxy Routes

Check out localhost:58087 for a GUI display of your current proxy routing. If this does not work run lando config and use the value of proxyDash for the port.

results matching ""

    No results matching ""