3

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? – Robin Schambach Jun 4 '18 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. – Simon Kuran Jun 4 '18 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 '18 at 16:27
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

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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