404 The site you requested does not have an associated route in Local

For windows users:

If you go to this directory:
C:\Users{your_windows_username}\AppData\Roaming\Local\run\router\nginx\conf

In there you will see a file called “route.{site_name}.local.conf

It should contain the following (Replace {site_name} with your site’s name, replace {site_port_number} with the right port number):

server {
	server_name {site_name}.local *.{site_name}.local;

	include server-block.conf;

	location / {
		proxy_pass http://127.0.0.1:{site_port_number};

		include location-block.conf;
	}
}

server {
	server_name {site_name}.local *.{site_name}.local;

	ssl_certificate      ../certs/{site_name}.local.crt;
	ssl_certificate_key  ../certs/{site_name}.local.key;

	include server-block-ssl.conf;

	location / {
		proxy_pass http://127.0.0.1:{site_port_number};

		include location-block.conf;
	}
}

If that doesn’t work, flick the preferences to use “Local Host”, then back to “Site Domains” and change the site domain to make sure it ends with “.local

This is what worked for me.

1 Like