<p>I've just changed the <code>webroot</code> for one of my Craft Nitro sites. After running <code>nitro apply</code> and it completing. I'm getting <code>404 - Not Found Nginx</code></p>
<p>Am I doing something wrong here? Is there a command I'm missing?</p>
<pre><code>  hostname:  test-nitro.nitro
  php:   8.0
  webroot:   public_html
  path:  ~/Documents/test-nitro
</code></pre>
<p>I've essentially moved everything from the <code>web</code> folder which was working, into a newly created folder called <code>public_html</code></p>

CC BY-SA 4.0
2022-01-25T10:58:38.537Z
This was fixed updating to the latest Nitro and re-applying
JMKelley
CC BY-SA 4.0
2022-01-26T23:21:27.263Z
Want to add that as an official answer, @JMKelley?
Brad Bell
<craft3><nitro>
Modifying webroot in Nitro
# Modifying webroot in Nitro

(Asked by: username_0 on 2022-01-25)

I've just changed the webroot for one of my Craft Nitro sites. After running nitro apply and it completing. I'm getting 404 - Not Found Nginx
Am I doing something wrong here? Is there a command I'm missing?
  hostname:  test-nitro.nitro
  php:   8.0
  webroot:   public_html
  path:  ~/Documents/test-nitro

I've essentially moved everything from the web folder which was working, into a newly created folder called public_html

**Tags:** craft3, nitro

> **Comments:**
> **username_0**: This was fixed updating to the latest Nitro and re-applying  
> **username_1**: Want to add that as an official answer, @username_0?  

---

## 0 answers

