Best Practice For Common Directory In App-Advance Structure?

I’ve set up yii-app-advance folder structure and also setup vhost that enable me to access the website view http://frontend and http://backend

But i would like to know that each vhost has some common folder, etc. upload folder, common css file…

using relative path (../../) doesn’t help, because it can’t access directory below its vhost file

Could you please advise me about the best practice to fix this problem?

Example structure

common

\ mystyle.css

frontend

\ web

\\ index.php

backend

\ web

\\ index.php

vhost http://frontend map to -> \frontend\web

but want to access mystyle.css

Thank you.

Symlinking.

If I understand correctly you mean linux symlinking. And what if you don’t have ssh access to do the symlinking?

You can use PHP for it: http://php.net/manual/en/function.symlink.php