# Bedrock Error 404 with Local by FlyWheel

**URL:** https://discourse.roots.io/t/bedrock-error-404-with-local-by-flywheel/19442
**Category:** bedrock
**Tags:** deploys
**Created:** 2020-11-03T17:37:33Z
**Posts:** 2

## Post 1 by @wise — 2020-11-03T17:37:34Z

Hi, I’m getting error 404 with bedrock using local by flywheel.  
My composer version is 1.9.0, because I was getting error on the newest with installing sage.

What I did is:  
Created a new site on Local by Flywheel on angon.local url, server is nginx, php 7.4.1, mysql 8.0.16  
I’ve installed bedrock in app folder, and deleted public folder, once I did that I typed composer install in bedrock folder (even without it, its still not working).  
After that I went to nginx site.conf.hbs file and I put:

root /Users/Dominik/Local Sites/angon/app/bedrock/web/;

instead of regular code.

In bedrock folder in .env file I setup my db config:

DB\_NAME=‘local’  
DB\_USER=‘root’  
DB\_PASSWORD=‘root’

WP\_ENV=‘development’  
WP\_HOME=‘[http://angon.local](http://angon.local)’  
WP\_SITEURL="${WP\_HOME}/wp"  
WP\_DEBUG\_LOG=/path/to/debug.log

And after this configuration I keep getting error 404 Site Not Found with no reason. I really don’t know how to fix it. Maybe some of you have any suggestions?

---

## Post 2 by @shed-00 — 2021-04-19T17:46:46Z

Assuming that you are using a Windows machine:  
Try changing the nginx root in the `site.conf.hbs` file from `{{root}}` to the local path to the web folder of your bedrock project.

For example, `root "C:/Users/USERNAME/path/to/project/app/bedrock/web"`.

Make sure to restart local site afterwards.

I was also having a 404 issue with bedrock on Local Flywheel, but resolved it. Here is a snippet of my site config.

```
server {
	listen {{port}};
    root "E:/PROJECTS/local-sites/bedrock/app/bedrock/web";
...
}
```
