<p>You need to configure your webserver/virtualhost to point to the /web directory.</p>

<p>For apache you have <code>DocumentRoot: your_disk_path/web</code></p>

<p>For nginx you have <code>root: your_disk_path/web</code></p>

CC BY-SA 4.0
2018-06-04T15:30:50.530Z
2018-06-04T15:30:50.530Z
dustfeather
<p>I'm new to Craft 3 and I need help getting the web root to point to /web.</p>

<p>I can't figure it out. If I use the url "mysite.com/web" everything works fine.</p>

<p>Any help would be gratefully received.</p>

CC BY-SA 4.0
2018-06-04T09:54:24.260Z
This is more about your web server than about Craft itself. In order to help we need to know what server you use. Can you set up a vHost or do you have access to the configuration?
Robin Schambach
CC BY-SA 4.0
2018-06-04T20:23:08.390Z
I'm voting to close this question as off-topic because this is a web server configuration question, not a Craft question.
Simon Kuran
CC BY-SA 4.0
2018-06-06T16:27:08.407Z
Voting to leave open because it's a Craft-relevant answer, and could be helpful to other Craft users. It has also (now) drawn a correct answer.
Lindsey D
<craft3><config><install>
help setting up web root to point to /web
# help setting up web root to point to /web

(Asked by: username_0 on 2018-06-04)

I'm new to Craft 3 and I need help getting the web root to point to /web.

I can't figure it out. If I use the url "mysite.com/web" everything works fine.

Any help would be gratefully received.

**Tags:** craft3, config, install

> **Comments:**
> **username_1**: This is more about your web server than about Craft itself. In order to help we need to know what server you use. Can you set up a vHost or do you have access to the configuration?  
> **username_2**: I'm voting to close this question as off-topic because this is a web server configuration question, not a Craft question.  
> **username_3**: Voting to leave open because it's a Craft-relevant answer, and could be helpful to other Craft users. It has also (now) drawn a correct answer.  

---

## 1 answers

### Answer by username_4 on 2018-06-04. Score: 4

You need to configure your webserver/virtualhost to point to the /web directory.

For apache you have `DocumentRoot: your_disk_path/web`

For nginx you have `root: your_disk_path/web`


---

