D
D
Dmitry Khaperets2014-02-27 22:40:06
Yii
Dmitry Khaperets, 2014-02-27 22:40:06

Yii2: How does a request end up in the web directory?

There is a deployed Yii2 on the site.com domain, in the web folder there is htaccess with a redirect of incoming requests (via mod_rewrite) to index.php. When we navigate to site.com, we get to index.php, which is located in /web/, although, according to the idea, it should be in the directory one level higher. How did it happen?
Maybe Apache is looking for all htaccess files (well, yes, it is looking for) and ... but I still misunderstand.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2014-02-27
Protko @Fesor

Where does documentroot point to? not on the web?

A
Aleksey Bernackiy, 2014-11-01
@usualdesigner

See Apache or Nginx configs. For example, here https://github.com/yiisoft/yii2/blob/16630a025fbec... provides an example of web server settings. Pay attention to "path/to/basic/web"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question