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.

  • 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? Jun 4, 2018 at 9:54
  • 1
    I'm voting to close this question as off-topic because this is a web server configuration question, not a Craft question. Jun 4, 2018 at 20:23
  • 1
    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
    Jun 6, 2018 at 16:27

1 Answer 1


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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.