开发者

Symfony: why is my main page example.com/web instead of example.com (as it should be?)

开发者 https://www.devze.com 2023-04-04 09:14 出处:网络
My directory tree looks something like this: public_html example.com(containing symfony files) lib web app

My directory tree looks something like this:

public_html
  example.com(containing symfony files)
    lib
    web
    app 
    etc...
  exa开发者_运维技巧mple.net
  example1.com
  example1.net

When I access my site via example.com it just shows my directory tree under the folder example.com, instead of routing to my actual homepage. How do I fix this?


You should place all files (except the web directory) in the directory directly above the web directory. Then create a symlink public_html to your web directory, or add the files to your public_html, and then in your ProjectConfiguration call $this->setWebDir(realpath('../public_html'));

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号