Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
.lando.yml
README.md
compose.yml

README.md

Proxy Format Example

This example uses an apache and nginx webserver to demonstrate the proxy routing format.

See the .lando.yml in this directory for proxy configuration options.

Launch the app

Run the following steps to get up and running with this example.

# Start up the example
# This may take awhile unless you've first added
#
#   - bob.frank.kbox.com
#   - frank.bob.joe
#   - tippecanoe.tyler.too
#
# To your `/etc/hosts`
# See: https://docs.devwithlando.io/config/proxy.html#working-offline-or-using-custom-domains
#
# If you have not added these entries then you should expect to see them as "red"
# after you start this example
lando start

Validate it works as expected

# Test 1
lando ssh web -c "true"

Blow it up

# Destroy it
lando destroy -y

Helpful Commands

Here is a non-exhaustive list of commands that are relevant to this example.

# Curl the default proxy URLs
curl http://trivial-proxy.lndo.site
# -k is needed to ignore the self-signed cert warning
curl -k https://trivial-proxy.lndo.site

# Curl some subdomains
curl http://sub.trivial-proxy.lndo.site

# Curl custom domains
# These should fail unless you've added the domains to your /etc/hosts file
# See: https://docs.devwithlando.io/config/proxy.html#working-offline-or-using-custom-domains
curl http://tippecanoe.tyler.too