Hi, i just start trying yii.
I am reading the definitive guide to yii 2.0.
The guide advice to point the document root of web server to yii ‘basic/web’ folder.
Does that mean opening www.mydomain.com will open yii application?
If it is, i dont want to do that.
My server is hosting multiple website/web app. Each has their own folder in document root of my web server.
Accessing www.mydomain.com will open my company website.
Each web app/other website is access through different subdomain on our server.
I can create a subdomain for my yii ‘basic/web’ folder, but the guide say
By setting basic/web as the document root, you also prevent end users from accessing your private application code and sensitive data files that are stored in the sibling directories of basic/web. Denying access to those other folders is a security improvement.
So my question is how do i achieve this security improvement without pointing my web server document root to yii ‘basic/web’ folder. Because if i just point a subdomain to yii ‘basic/web’ folder, the other file/folder outside of ‘basic/web’ still accessible through web.
I did read the guide on Shared Hosting Environment but doesnt really understand it. One of the instruction in that topic is
If you can write to the root level directory i.e. where config, logs and www are, then upload assets, commands etc. as is to the root level directory
1)Does etc mean everything including all file in yii folder except the web folder?
2)If i need to this, i hope i can put all of those item in a single folder in root level directory because i dont want them to mix up with other folder.
Hope someone can help, thanks.